RestAPI to call file copy jobs

RESTful knowledge exchange

RestAPI to call file copy jobs

Veeam Logoby pj888888888888 » Fri 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
pj888888888888
Enthusiast
 
Posts: 36
Liked: 1 time
Joined: Tue Jan 03, 2017 2:58 pm
Full Name: Paul Janeway

Re: RestAPI to call file copy jobs

Veeam Logoby v.Eremin » Thu 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.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: RestAPI to call file copy jobs

Veeam Logoby pj888888888888 » Thu 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.
pj888888888888
Enthusiast
 
Posts: 36
Liked: 1 time
Joined: Tue Jan 03, 2017 2:58 pm
Full Name: Paul Janeway

Re: RestAPI to call file copy jobs

Veeam Logoby v.Eremin » Fri 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.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: RestAPI to call file copy jobs

Veeam Logoby pj888888888888 » Mon 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.
pj888888888888
Enthusiast
 
Posts: 36
Liked: 1 time
Joined: Tue Jan 03, 2017 2:58 pm
Full Name: Paul Janeway

Re: RestAPI to call file copy jobs

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: RestAPI to call file copy jobs

Veeam Logoby benyoung » Mon Jun 04, 2018 8:12 pm

Ill add this to the wishlist.
benyoung
Service Provider
 
Posts: 53
Liked: 11 times
Joined: Wed May 25, 2016 3:29 am
Full Name: Ben Young

Re: RestAPI to call file copy jobs

Veeam Logoby pj888888888888 » Mon Jun 11, 2018 1:07 pm

Bummer, Well guess I'll do powershell for this for the time being.
Well thanks for looking.
pj888888888888
Enthusiast
 
Posts: 36
Liked: 1 time
Joined: Tue Jan 03, 2017 2:58 pm
Full Name: Paul Janeway


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 3 guests