When I try to access information for the virtual machine I keep on getting undefined. My input is a vm and this is my quick script
//get VM Datastore
var virtualMachineDataStore = vm.datastore;
System.log(virtualMachineDataStore);
for (var i in virtualMachineDataStore){
System.log(virtualMachineDataStore.info);
}
I get an undefined log however. What I want to do is get to the extent properties on the hostvmfs. So I want to go to info -> but in the VcDatastoreInfo I dont see the return class VcHostVmfsVolume so I can use the extent property any help would be appricated.
If you could just help with the undefined then that would be helpful the other tid bit is a bit more and I maybe able to findout myself after some tries