VMware {code} Community
MikeMatczynski
Contributor
Contributor

MOB: Types of Folders - group-d#, group-s#, etc...

When looking at Folders in the Managed Object Browser, it appears that the folders are named with various letters (e.g. group-v3).

Any idea what the following types are?

group-d
group-h
group-n
group-s
group-v

Is there a way to get this information via the API?

Thanks!

Mike

Tags (3)
0 Kudos
2 Replies
lamw
Community Manager
Community Manager

What you're seeing is the various folder types found within the vSphere Inventory, you most likely were browsing at a the Datacenter MoRef as described here in the vSphere API reference document - http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.Datacenter.html

d = datacenterFolder

h = hostFolder

n = networkFolder

s = datastoreFolder

v = vmFolder

Yes these are accessible via the vSphere API as referenced above and to get a better understanding of the inventory, take a look at this blog post which goes into more detail - http://www.doublecloud.org/2010/03/vsphere-inventory-structure-deep-dive/

MikeMatczynski
Contributor
Contributor

Thanks for the description of what each name maps to!

I'm still trying to figure out the second part of my question, how do I programatically figure out what type of Folder it is?  According to a thread in the vijava forums, looking at childType might be enough to figure it out:

http://sourceforge.net/projects/vijava/forums/forum/826592/topic/406103

Thanks!

Mike

0 Kudos