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

Filtering vm's based on datastoreFolder

$
0
0

I can't find an easy way to filter vm's based on a datastore Folder.

 

For example I would like to do somthing like this

my $vm = Vim::find_entity_view(view_type => 'VirtualMachine', begin_entinty => $datacenter, filter => {'datastoreFolder().name => 'myFolder' } );

 

I know the bold isn't correct above, but I can't think of a concise way of doing this without finding the name datastore the vm is in, then next getting a datastore browser and getting the filter after that fact from there.

 

Basically I can't think of a clean way of doing this.  Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 193198

Trending Articles