Repository navigation
Need to get the list of vm guests using a specific datastore #3133
|
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 |
Answered by
dougm
May 24, 2023
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 |
0 replies
Answer selected by
tenthirtyam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you looked at using the property collector? See example below, where
host.Vmis a slice of references:govmomi/property/example_test.go
Lines 69 to 70 in de8a56d