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.
5 VM folder
16 datastore folder
17 Network folder