How to exactly use the pyvmomi
library to get the above mapping
, I mean what data structures to use particularly. I suppose it should be done via data store.
def getdatastore(datastore):
try:
summary = datastore.summary
return summary.name
except Exception as error:
print "Unable to access summary for datastore: ", datastore.name
print error
pass
tried with the above function but in vain