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

RestAPI to call file copy jobs

Post by pj888888888888 »

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
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by veremin »

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: 38
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 »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by veremin »

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: 38
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 »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: RestAPI to call file copy jobs

Post by veremin »

OK, most likely, you're talking about file copy jobs which are not exposed and cannot be executed via RESTful API. Thanks.
benyoung
Veeam Vanguard
Posts: 148
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: RestAPI to call file copy jobs

Post by benyoung »

Ill add this to the wishlist.
pj888888888888
Enthusiast
Posts: 38
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 »

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 6 guests