Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to get a ManagedObject from ManagedObjectReference

$
0
0



I am using vijava.  I have MOR object.  How do I get HostSystem for example from the MOR?


I was hoping using the following will work:


HostSystem hs = (HostSystem) new InventoryNavigator(si.getRootFolder()).searchManagedEntity("HostSystem", mor.getVal());


where "mor" is the ManagedObjectReference of the HostSystem.


Thanks in advance

 


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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