-
Hi, I need to get the list of vm guests that are using a particular datastore. I'm supposed to get back a slice of references to the vm guests. I'm having some trouble trying to figure out what to do with those references (ie; access the vm name). I have been looking at the source, but I haven't found anything that sheds any light on this. Can someone please point me in the right direction? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Have you looked at using the property collector? See example below, where govmomi/property/example_test.go Lines 69 to 70 in de8a56d |
Beta Was this translation helpful? Give feedback.
Have you looked at using the property collector? See example below, where
host.Vm
is a slice of references:govmomi/property/example_test.go
Lines 69 to 70 in de8a56d