Hi All
I have used the below piece of code
ManagedObjectReference vmFolderRef = (ManagedObjectReference)getObjectProperty(datacenterRef, "vmFolder");
// Find the virtual machine list from the virtual machine folder found above.
ManagedObjectReference[] vmList = (ManagedObjectReference[])getObjectProperty(vmFolderRef, "childEntity");
but i am not getting the entire list of Virtual Machine on my Vcenter ,
when I open my VCenter console through Vpshere Client , I can see there a folder name Discovered Virtual Machine and my code is not able to find all the VMs under this folder
Can anyone suggest where i have to change the code or what keyword I have to pass instead of "vmFolder"
Its really Urgent