Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

vmFolder Not listing all VMs

$
0
0

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


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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