REST API knowledge exchange
Post Reply
hanssonola
Lurker
Posts: 1
Liked: never
Joined: Jan 03, 2017 7:39 am
Full Name: Ola Hansson

Find all VMs in a resource pool through API

Post by hanssonola »

Hi,

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

Re: Find all VMs in a resource pool through API

Post by veremin »

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.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests