Hi All,
Can anyone help me on this topic?
When i use this method getVMWHosts() in vRO It cannot retrieve ESXI hosts from vcloud director and gives the following error
var vcdHosts = System.getModule("com.vmware.library.vCloud.Host").getHosts();
System.log("the hosts are : " +vcdHosts)
entities = new Array();
for each (var vcdHost in vcdHosts) {
entities = vcdHost.toAdminObject().toAdminExtensionObject().getVMWHosts()
System.log("the number of host in vcd is : "+entities)
}
Error in (Workflow:vclvmID / Scriptable task (item1)#5) VMWSystemHostRefs NOT found for MYUSERNAME@System. [ fcfdd6e3-ad90-4735-b2b6-fd512b95a578 ] class java.lang.NullPointerException
Thank you