Find all VMs in a resource pool through API

RESTful knowledge exchange

Find all VMs in a resource pool through API

Veeam Logoby hanssonola » Tue Jan 03, 2017 7:55 am


I'm trying to visualize the backup status in our network. For one job I've added a resource pool as backup object. When doing (GET) /jobs/{ID} for said job I receive the ResourcePool id in the <HierarchyObjRef> for the <ObjectInJob>.

So my question is; if the job has not been run, meaning no BackupTaskSessions are available for the job, is there any possibility to see what VMs are included in the ResourcePool through the API?

Best regards,
Posts: 1
Liked: never
Joined: Tue Jan 03, 2017 7:39 am
Full Name: Ola Hansson

Re: Find all VMs in a resource pool through API

Veeam Logoby v.Eremin » Wed Jan 04, 2017 12:22 pm

The lookup service should be a way to go. You already have object reference, using which you can find a resource pool. Then, you need to check whether the returned object has references to its child objects such as Virtual Machines or whether VM objects refer to their parent such as Resource Pool anyhow.

However, it's nothing but an assumption. Currently I don't have access to backup server console, so cannot double check that myself.

Veeam Software
Posts: 14696
Liked: 1099 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 3 guests