Denis.A
Denis.A

Reputation: 191

Finding full folders list of a datastore

I'm trying to get the entire folder name list of a VMWARE datastore (like folder1/folder2/datastore1, for example)

Found some code for a VM :

$vmtmp = Vim::find_entity_view(view_type => "VirtualMachine", filter => { name => $vm->name });
$path = Util::get_inventory_path($vmtmp ,Vim::get_vim());

but the find_entity_view function does not manage datastore data type.

Any clue to get this list (I'm newbie to perl sdk for vmware and a bit confused with the documentation) ?

Upvotes: 0

Views: 297

Answers (1)

daxim
daxim

Reputation: 39158

See find_entity_view in Vim.

view_type => "Datastore"

Upvotes: 1

Related Questions