VMware Cloud Community
deepakmits
Contributor
Contributor

How to get VM details from SRM APIs ?

SRM API "srmPort.listProtectedVms(locPgMor)" returns list of protected VMs . But this list returns MORs of these VMs. I want to get more details about these VMs like display name, host name, ip address etc. How can I get these details ? Is it like to get these details we need to talk to Vcneter using vsphere APs passing the MORs of VMs. I have tried this also but MOR of VMs (got from SRM server) doesnt match with any of the VMs on same vcenter server. So in this what should be done ?

0 Kudos
0 Replies