Hello,
I am trying to get a piece of code working that will list all the resource pools that are present in a ESXi cluster.
- I know I can find what resource pool a VM resides to. I do not want that.
// Find a matching resource pool on an ESXi hosts var esxiCluster = esxiHost.parent; var esxiClusterResourcePools = esxiCluster.resourcePool_ResourcePool; System.log("what is the ESXi cluster: " + esxiCluster.name); System.log("vimtype: " + esxiCluster.vimType); System.log("what pools exists: " + esxiClusterResourcePools);
So I know the vimType will come back with what I expect (ClusterComputeResource). The issue I have is the object "resourcePool" refers to the root resource pool (in my case it is "resources").
What I want is all the DRS resource pools we have setup. I need something like "resourcePool_ResourcePool.children".
Any help is appreciated.
Thanks
B