What API calls are executed while gathering inventory from a VMware ESX or a vCenter server?
Question
When the VMware infrastructure inventory task is run by a beacon to gather data from an ESX or vCenter server, what VMware API endpoints are called?
Answer
After authenticating to the VMware API, the major API endpoints called are:
-
GetServiceContent - a single call to retrieve the ServiceInstance to enable further queries
-
RetrieveProperties - a single call, starting from the root folder and returning all HostSystem, Datacenter, Folder, ComputeResource and ClusterComputeResource objects (with 2-5 associated property values each) via recursive traversal specifications on:
-
ComputeResource.host
-
ClusterComputeResource.host
-
Datacenter.hostFolder
-
Datacenter.vmFolder
-
Folder.childEntity to the above object types
-
-
Then for each HostSystem returned, an additional RetrieveProperties call, starting from the respective HostSystem object and returning all related VirtualMachine and ResourcePool objects (with 4 associated property values each) via recursive traversal specifications on:
-
HostSystem.parent
-
ComputeResource.resourcePool
-
ResourcePool.resourcePool
-
ResourcePool.vm
-
The base version 2.0 vSphere SOAP API is used for most calls, with one additional call per host and cluster to a later API method RetrievePropertiesEx to retrieve specific additional properties not available from the 2.0 API.
Was this helpful?
© 2026 Flexera. All rights reserved.