Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 234493

Re: Get every vm inside folder

$
0
0

I don't have a code blob, but basically the short answer is to fetch all folders (with just their name property for example), then you have the parent object.  Then you can create a ContainerView object with that Folder.  From that you can get a list of objects in that container.  That would be the simpler method. 

 

If you do a full retrieval spec like this, you'll have to do you own parent-child tree searches to find your VMs.  For example, what if the folder has children folders: MKN/Folder1 and MKN/Folder2 both with VMs below those?

 

I'd look into the ContainerView as a way to simplify the search.


Viewing all articles
Browse latest Browse all 234493

Trending Articles



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