Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Getting RetrieveProperties to resolve ManagedObjectReferences

$
0
0

 

I'm using the SDK sample code to get properties for all VMs using the RetrieveProperties method. I want to get host name which is accessible via the host property of the runtime property of the VM. However I can't specify runtime.host.name in the property spec because that gives an error, I think because the runtime.host property is a ManagedObjectReference. I have added some code to do another call to RetrieveProperties to get the name but that is very, very slow because there is one additional call per VM (takes 39 seconds!!)

 

 

So is there any way to have the one call to RetrieveProperties resolve the object references for me?

 

 

 

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles