Wednesday, November 25, 2009

VMware Type IDs

I am looking into the VMware database to try and setup some automated reporting, and the first thing needed is to find the various objects in the database.

Looking at the views I see VPXV_ENTITY, a good place to start looking. It appears that every object (or entity) in VMware is listed here. Now to segment them out based on object type, or TYPE_ID.

Below is a list of type_id's that I have identified in my environment. Not sure if these stay the same between versions and installations, but this is the best I have for now.

0 VM
1 host
3 cluster
4 resources
5 VM folder
6
7
8 Datacenter
16 datastore folder
17 Network folder
18 Datastore
19 Network

No comments: