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.StubFactoryBaseInitialize 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.VapiInterfaceThe
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.VapiStructThe
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 (
setoflongorNone) – 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 (
boolorNone) – 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.VapiStructThe
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 (
strorNone) – The TPM manufacturer. This attribute was added in vSphere API 8.0.0.1. if None, manufacturer is not available.model (
strorNone) – The TPM model. This attribute was added in vSphere API 8.0.0.1. if None, model is not available.firmware_version (
strorNone) – The TPM firmware version. This attribute was added in vSphere API 8.0.0.1. if None, firmware version is not available.banks (
listofcom.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.VapiStructThe
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 parameterhostrequiresHost.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.FilterSpecorNone) – a filter for the returned list. if \@term.unset}, the behavior is equivalent to aTpm.FilterSpecwith attributes None
- Return type
 listofTpm.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 parameterhostrequiresHost.Tpm.Read.