So If I have a VclVM object, is there a way to get a SdkConnection to the vCenter or host that is running that particular vm?
Best guess I have is to get the name of the vCenter and loop through VcPlugin.allSdkConnections to see if the name matches (assuming that there is a property that has the name of the vcenter in it...)
var hostRef = VclVirtualMachine.getVMHostVimRef();
System.log(hostRef.VimServerRef.name); // This ouputs the server name of the vcenter that hosts the vm
Anyone have a better suggestion?
Thanks,
Magnus