RESTful knowledge exchange
Post Reply
gmuthireddy
Lurker
Posts: 1
Liked: never
Joined: Feb 21, 2020 12:47 am
Full Name: Girish Kumar Muthireddy
Contact:

API to ADD or Delete VMs to a Veeam Backup Jobs

Post by gmuthireddy »

Is there any curl command to DELETE VMs from a Veeam Backup job or to ADD VMs to Veeam Backup jobs.? If so, please help me in finding it. Thanks.

benyoung
Veeam Vanguard
Posts: 144
Liked: 46 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: API to ADD or Delete VMs to a Veeam Backup Jobs

Post by benyoung »

There most certainly is. well, there is an API, you can use whatever means of triggering the API

You are after this resource
https://helpcenter.veeam.com/archive/ba ... ludes.html

You can post the new object, along with the desired settings to the /job/{id}/includes

You will also need to perform a lookup to fetch the HierarchyObjRef via the lookupsvc

https://helpcenter.veeam.com/archive/ba ... upsvc.html

Deletions are done using
https://helpcenter.veeam.com/docs/backu ... ml?ver=100

And before all that, if you are not aware you will need to login and use the returned session id (in the headers of the response) - and set the X-RestSvcSessionId on calls to any of the above. Here is how to auth

https://helpcenter.veeam.com/archive/ba ... ation.html


If you have access to powershell you can also perform these operations using this instead of via the enterprise manager API

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests