Quantcast
Viewing all articles
Browse latest Browse all 249166

Re: Identify a vCenter instanceUuid for a vCloud VIM object

The following should return the UUID of your vCenter Server assuming the input object is a vCloud:ProviderVdc object named "providerVdc"

 

var vcdHost = providerVdc.getHost();
var pool = providerVdc.toAdminExtensionObject().getResourcePools()[0]; // get the first resource pool (VclVMWProviderVdcResourcePool)
var vimObjectRef = pool.resourcePoolVimObjectRef;
var vimServer = vcdHost.getEntityByReference(VclFinderType.VIM_SERVER,vimObjectRef.vimServerRef);
System.log("VimServer uuid: "+vimServer.uuid);

Viewing all articles
Browse latest Browse all 249166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>