Get VMs in a job

RESTful knowledge exchange

Get VMs in a job

Veeam Logoby nergal » Wed May 24, 2017 6:48 am

I got a backup for a vCenter server, it includes multiple VMs. How can I through the REST API get number of VMs in the backup-files? I just want VMs for a specific job and not for the whole system.

I can't find any VM related in the jobs/backups. It has the job/<id>/includes but those objects are just the vCenter server in this case.
nergal
Novice
 
Posts: 6
Liked: never
Joined: Thu May 18, 2017 7:04 am

Re: Get VMs in a job

Veeam Logoby nergal » Wed May 24, 2017 8:19 am

Solved. I found them in backupSessions and filtered them out for backupFiles.
nergal
Novice
 
Posts: 6
Liked: never
Joined: Thu May 18, 2017 7:04 am

Re: Get VMs in a job

Veeam Logoby v.Eremin » Wed May 31, 2017 9:11 am

Also, you can query /backups/id resource to get list of /restorepoint entities and get VM names from there. Thanks.
v.Eremin
Veeam Software
 
Posts: 13728
Liked: 1027 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 1 guest