Retrieving Host Information
You retrieve information about the host by accessing data objects defined for the
HostSystem
.- HostSystem.capabilityis aHostCapabilityobject. TheHostCapabilityproperties indicate the features that are supported by the host, for example,maintenanceModeSupportedorrecursiveResourcePoolsSupported.
- HostSystem.runtimeInfois aHostRuntimeInfoobject that contains several data objects with detailed information about the current state of the host. You can, for example, extract the health status as aHealthSystemRuntimeobject or the power state as aHostPowerStateobject.
- HostSystem.hardwareis aHostHardwareInfoobject that allows you to retrieve the host’s hardware configuration including CPU and NUMA information and memory size.
- HostSystem.configis aHostConfigInfoobject. This data object type encapsulates a typical set of host configuration information that is useful for displaying and configuring a host. You can access theHostConfigInfoobject only on managed hosts, and only if the host is connected.
HostSystem
has several additional properties that allow you to directly access the virtual machines, datastores, and networks associated with that system.The
QueryHostConnectionInfo
, QueryMemoryOverhead
, and QueryMemoryOverheadEx
methods are available for information retrieval.HostSystem and Information Properties
