Hey Gang, this is my first post so please forgive me if I ask any obvious questions. I'm currently developing an app that interfaces with a VC via the rbvmomi library (ruby), which uses the vsphere API. I'm having a problem where I need to list all the available VMs, but the vmFolder API command is only returning less than half of what is actually there. I double checked this using a vsphere client.
Any ideas on what I could be doing wrong? Are there multiple vmFolders that I have to look in or something? Do the VMs have to be added in a special way to be visible via the API?
Here is the line of ruby code using rbvmomi:
dc.vmFolder.childEntity.size
=> 63
And I know I have 112 VMs set up. dc is the datacenter variable, and I'm pretty sure that the rbvmomi framework is just using the API SDK.
Thanks in advance for your help!
-Dave