Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Datastore "undefined"

$
0
0

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


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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