Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

How to get a SdkConnection from a VclVM

$
0
0

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


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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