-
- Enthusiast
- Posts: 38
- Liked: 1 time
- Joined: Jan 03, 2017 2:58 pm
- Full Name: Paul Janeway
- Contact:
RestAPI to call file copy jobs
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.
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.
-
- 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
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.
-
- 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
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.
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.
-
- 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
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.
-
- 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
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.
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.
-
- 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
OK, most likely, you're talking about file copy jobs which are not exposed and cannot be executed via RESTful API. Thanks.
-
- 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
Ill add this to the wishlist.
-
- 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
Bummer, Well guess I'll do powershell for this for the time being.
Well thanks for looking.
Well thanks for looking.
Who is online
Users browsing this forum: No registered users and 6 guests