com.vmware.vcenter.trusted_infrastructure.hosts package
Subpackages
Submodules
com.vmware.vcenter.trusted_infrastructure.hosts.hardware_client module
The com.vmware.vcenter.trusted_infrastructure.hosts.hardware_client module
provides classes to manage trusted hardware.
- class com.vmware.vcenter.trusted_infrastructure.hosts.hardware_client.StubFactory(stub_config)
- Bases: - vmware.vapi.bindings.stub.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
 
- class com.vmware.vcenter.trusted_infrastructure.hosts.hardware_client.Tpm(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - Tpminterface provides methods to get available Trusted Platform Module (TPM) information on a host. This class was added in vSphere API 8.0.0.1.- Parameters
- config ( - vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
 - class FilterSpec(major_versions=None, active=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Tpm.FilterSpecclass contains attributes used to filter the results when listing configured TPMs. This class was added in vSphere API 8.0.0.1.- Tip - The arguments are used to initialize data attributes with the same names. - Parameters
- major_versions ( - setof- longor- None) – The TPM major version number. This attribute was added in vSphere API 8.0.0.1. if None or empty, the result will not be filtered by version number.
- active ( - boolor- None) – The TPM status. This attribute was added in vSphere API 8.0.0.1. if None, the result will not be filtered by status.
 
 
 - class Info(major_version=None, minor_version=None, active=None, manufacturer=None, model=None, firmware_version=None, banks=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Tpm.Infoclass contains information that describes a TPM device. This class was added in vSphere API 8.0.0.1.- Tip - The arguments are used to initialize data attributes with the same names. - Parameters
- major_version ( - long) – The TPM major version number. This attribute was added in vSphere API 8.0.0.1.
- minor_version ( - long) – The TPM minor version number. This attribute was added in vSphere API 8.0.0.1.
- active ( - bool) –- The TPM status. - Inactive TPMs cannot be used for sealing or attestation.. This attribute was added in vSphere API 8.0.0.1. 
- manufacturer ( - stror- None) – The TPM manufacturer. This attribute was added in vSphere API 8.0.0.1. if None, manufacturer is not available.
- model ( - stror- None) – The TPM model. This attribute was added in vSphere API 8.0.0.1. if None, model is not available.
- firmware_version ( - stror- None) – The TPM firmware version. This attribute was added in vSphere API 8.0.0.1. if None, firmware version is not available.
- banks ( - listof- com.vmware.vcenter.trusted_infrastructure.hosts.hardware.tpm_client.PcrBank) – The list of the PCR banks of the TPM device. This attribute was added in vSphere API 8.0.0.1.
 
 
 - RESOURCE_TYPE = 'com.vmware.vcenter.trusted_infrastructure.hosts.hardware.Tpm'
- Resource type for TPM. This class attribute was added in vSphere API 8.0.0.1. 
 - class Summary(tpm=None, major_version=None, minor_version=None, active=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - Tpm.Summaryclass contains information that summarizes a TPM. This class was added in vSphere API 8.0.0.1.- Tip - The arguments are used to initialize data attributes with the same names. - Parameters
- tpm ( - str) – A unique identifier for the TPM instance. This attribute was added in vSphere API 8.0.0.1. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:- com.vmware.vcenter.trusted_infrastructure.hosts.hardware.Tpm. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:- com.vmware.vcenter.trusted_infrastructure.hosts.hardware.Tpm.
- major_version ( - long) – The TPM major version number. This attribute was added in vSphere API 8.0.0.1.
- minor_version ( - long) – The TPM minor version number. This attribute was added in vSphere API 8.0.0.1.
- active ( - bool) –- The TPM status. - Inactive TPMs cannot be used for sealing or attestation.. This attribute was added in vSphere API 8.0.0.1. 
 
 
 - get(host, tpm)
- Get the TPM details on a host. This method was added in vSphere API 8.0.0.1. - Parameters
- host ( - str) – Identifier of the host. The parameter must be an identifier for the resource type:- HostSystem.
- tpm ( - str) – the TPM identifier. The parameter must be an identifier for the resource type:- com.vmware.vcenter.trusted_infrastructure.hosts.hardware.Tpm.
 
- Return type
- Returns
- The TPM info. 
- Raise
- com.vmware.vapi.std.errors_client.Errorif there is a generic error.
- Raise
- com.vmware.vapi.std.errors_client.InvalidArgumentif any argument is invalid.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the TPM is not found or host is not found.
- Raise
- com.vmware.vapi.std.errors_client.ServiceUnavailableif too many requests are in progress.
- Raise
- com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.
- Raise
- com.vmware.vapi.std.errors_client.Unauthorizedif the caller is not authorized.
- Raise
- com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:- The resource - HostSystemreferenced by the parameter- hostrequires- Host.Tpm.Read.
 
 
 - list(host, filter=None)
- Return a list of configured TPMs on a host. This method was added in vSphere API 8.0.0.1. - Parameters
- host ( - str) – Identifier of the host. The parameter must be an identifier for the resource type:- HostSystem.
- filter ( - Tpm.FilterSpecor- None) – a filter for the returned list. if \@term.unset}, the behavior is equivalent to a- Tpm.FilterSpecwith attributes None
 
- Return type
- listof- Tpm.Summary
- Returns
- A list of configured TPMs. 
- Raise
- com.vmware.vapi.std.errors_client.Errorif there is a generic error.
- Raise
- com.vmware.vapi.std.errors_client.InvalidArgumentif any argument is invalid.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundif the host is not found.
- Raise
- com.vmware.vapi.std.errors_client.ServiceUnavailableif too many requests are in progress.
- Raise
- com.vmware.vapi.std.errors_client.Unauthenticatedif the caller is not authenticated.
- Raise
- com.vmware.vapi.std.errors_client.Unauthorizedif the caller is not authorized.
- Raise
- com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:- The resource - HostSystemreferenced by the parameter- hostrequires- Host.Tpm.Read.