RESTful knowledge exchange
Post Reply
pj888888888888
Enthusiast
Posts: 36
Liked: 1 time
Joined: Jan 03, 2017 2:58 pm
Full Name: Paul Janeway
Contact:

RestAPI to call file copy jobs

Post by pj888888888888 » May 18, 2018 2:55 pm

So I have been using Veeam to replicate the templates that our sysadmins use from our corporate site to our remote sites.
We are trying to work on automating quite a bit of our environment, and I wanted to give them the ability to call this through the restapi (being we could have ancible call this job and automate this process)
I was trying and found that the when we put the job ID for the template copy job into the api string, it fails with a 404 error that the resource was non-existent.

Has anyone had any success in attempting this?
I'm almost on the verge of getting this in good working order, this would be a pretty big win if I could get this working. :D

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by v.Eremin » May 24, 2018 10:18 pm

Could you elaborate on your goal? You want to start file copy job via RESTful APIs? Have you tried to do the same with PowerShell already? Thanks.

pj888888888888
Enthusiast
Posts: 36
Liked: 1 time
Joined: Jan 03, 2017 2:58 pm
Full Name: Paul Janeway
Contact:

Re: RestAPI to call file copy jobs

Post by pj888888888888 » May 31, 2018 2:15 pm

So our goal is for Ancible to call this API, so that my OS teams can deploy the updated templates to each site in our company through our config management tools (for tracking, but also to reduce having to ask our team to do this)

I've looked at PowerShell for some of this briefly, but for this process it would be preferable to use the REST API's for this.

I tried calling the job through the API manually and it errored out.

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by v.Eremin » Jun 01, 2018 3:27 pm

What type of job you're trying to execute via REST? Backup, Replication, backup copy, file copy, etc.? And what exact call you used? Thanks.

pj888888888888
Enthusiast
Posts: 36
Liked: 1 time
Joined: Jan 03, 2017 2:58 pm
Full Name: Paul Janeway
Contact:

Re: RestAPI to call file copy jobs

Post by pj888888888888 » Jun 04, 2018 1:23 pm

The call I am using is this one:
https://*VEMname*.availity.net:9398/api/jobs/*job number*?format=Entity

I had to find the job number manually though, it was not on the page with all the other jobs.

v.Eremin
Veeam Software
Posts: 15140
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by v.Eremin » Jun 04, 2018 5:55 pm

OK, most likely, you're talking about file copy jobs which are not exposed and cannot be executed via RESTful API. Thanks.

benyoung
Service Provider
Posts: 57
Liked: 12 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: RestAPI to call file copy jobs

Post by benyoung » Jun 04, 2018 8:12 pm

Ill add this to the wishlist.

pj888888888888
Enthusiast
Posts: 36
Liked: 1 time
Joined: Jan 03, 2017 2:58 pm
Full Name: Paul Janeway
Contact:

Re: RestAPI to call file copy jobs

Post by pj888888888888 » Jun 11, 2018 1:07 pm

Bummer, Well guess I'll do powershell for this for the time being.
Well thanks for looking.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests