com.vmware.esx.hosts package
Submodules
com.vmware.esx.hosts.software_client module
The com.vmware.esx.hosts.software_client module provides classes to get
information about current software on ESX.
- class com.vmware.esx.hosts.software_client.InstalledComponents(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - InstalledComponentsclass provides methods to get installed list of components.- Parameters
- config ( - vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
 - class InstalledComponentInfo(display_name=None, version=None, display_version=None, platforms=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - InstalledComponents.InstalledComponentInfoclass contains attributes that describe the installed component on the host.- Tip - The arguments are used to initialize data attributes with the same names. - Parameters
- display_name ( - str) – Display name of the component.
- version ( - str) – Version of the installed component
- display_version ( - str) – Human readable version of the component.
- platforms ( - setof- str) – Platforms the component belongs to. Example: host, vmdpu0, vmdpu1, … This attribute was added in vSphere API 8.0.0.1. This attribute is optional because it was added in a newer version than its parent node.
 
 
 - list(host)
- Returns the installed components on the host. - Parameters
- host ( - str) – Identifier of the cluster. The parameter must be an identifier for the resource type:- HostSystem.
- Return type
- dictof- strand- InstalledComponents.InstalledComponentInfo
- Returns
- The components installed on the host. The key in the return value - dictwill be an identifier for the resource type:- com.vmware.esx.hosts.component.
- Raise
- com.vmware.vapi.std.errors_client.InternalServerErrorIf there is some unknown internal error. The accompanying error message will give more details about the failure.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundIf there is no host associated with- hostin the system.
- Raise
- com.vmware.vapi.std.errors_client.ServiceUnavailableIf the service is not available.
- Raise
- com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.
- Raise
- com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:- Method execution requires - VcIntegrity.lifecycleSoftwareSpecification.Read.
- The resource - HostSystemreferenced by the parameter- hostrequires- VcIntegrity.lifecycleSoftwareSpecification.Read.
 
 
 
- class com.vmware.esx.hosts.software_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance