com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters package¶
Subpackages¶
- com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.attestation package
- com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms package
Submodules¶
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.attestation_client module¶
The
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.attestation_client
module provides classes for configuring the Attestation Service. It attests the
state of a remote infrastructure node.
Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
ServiceStatusclass provides methods to get the Attestation Service health status. This class was added in vSphere API 7.0.0.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
Bases:
vmware.vapi.bindings.enum.EnumThe
ServiceStatus.Healthclass defines the possible service health states. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theHealthinstance.
Service is not functioning. This class attribute was added in vSphere API 7.0.0.0.
No status available. This class attribute was added in vSphere API 7.0.0.0.
Service is functioning normally. This class attribute was added in vSphere API 7.0.0.0.
Service is functioning, however there is an issue that requires attention. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
ServiceStatus.Infoclass contains information that describes the status of the service. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
health (
ServiceStatus.Health) – The service health status. This attribute was added in vSphere API 7.0.0.0.details (
listofcom.vmware.vapi.std_client.LocalizableMessage) –Details regarding the health of the service.
When the service
ServiceStatus.Healthis notServiceStatus.Health.OKorServiceStatus.Health.NONE, this member will provide an actionable description of the issues present.. This attribute was added in vSphere API 7.0.0.0.
Return the Attestation service health in the given cluster. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms_client module¶
The
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms_client
module provides the interfaces for configuring the Key Provider Service. It
encapsulates one or more key servers and exposes Trusted Key Providers.
Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Providersinterface provides methods to create, update and delete Key Providers that handoff to key servers. This class was added in vSphere API 7.0.0.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.CreateSpecclass contains attributes that describe the desired configuration for a new Key Provider. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
provider (
str) –Name of the provider.
A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0.0. 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.trust_authority_clusters.kms.Provider. 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.trust_authority_clusters.kms.Provider.master_key_id (
str) –Master key ID created for the provider.
A unique Key ID.. This attribute was added in vSphere API 7.0.0.0.
key_server (
Providers.KeyServerCreateSpec) – Key server associated with this Provider. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.Healthclass defines the possible health states. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theHealthinstance.
Not healthy. This class attribute was added in vSphere API 7.0.0.0.
No status available. This class attribute was added in vSphere API 7.0.0.0.
Health is normal. This class attribute was added in vSphere API 7.0.0.0.
Health is normal, however there is an issue that requires attention. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.Infoclass contains attributes that describe the current configuration of a provider. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
master_key_id (
str) –Master key identifier created for the provider.
A unique Key identifier.. This attribute was added in vSphere API 7.0.0.0.
key_server (
Providers.KeyServerInfo) – Key server associated with this provider. This attribute was added in vSphere API 7.0.0.0.status (
Providers.Status) – Status of the provider in the cluster. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KeyServerCreateSpecclass contains attributes that describe the desired configuration for the key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Providers.KeyServerCreateSpec.Type) – Type of the key server. This attribute was added in vSphere API 7.0.0.0.description (
strorNone) – Description of the key server. This attribute was added in vSphere API 7.0.0.0. If None, description will not be added.proxy_server (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddressorNone) – Proxy server configuration. This attribute was added in vSphere API 7.0.0.0. If None, the key server will not use a proxy server.connection_timeout (
longorNone) – Connection timeout in seconds. This attribute was added in vSphere API 7.0.0.0. If None, connection timeout will not be set.kmip_server (
Providers.KmipServerCreateSpec) – Configuration information for Key Management Interoperability Protocol (KMIP) based key server. This attribute was added in vSphere API 7.0.0.0. This attribute is optional and it is only relevant when the value oftypeisProviders.KeyServerCreateSpec.Type.KMIP.
Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.KeyServerCreateSpec.Typeclass lists the key server types. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theTypeinstance.
Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KeyServerInfoclass contains attributes that describe the current configuration of a key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Providers.KeyServerInfo.Type) – Type of the key server. This attribute was added in vSphere API 7.0.0.0.description (
str) – Description of the key server. This attribute was added in vSphere API 7.0.0.0.proxy_server (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddressorNone) –Proxy server configuration.
. This attribute was added in vSphere API 7.0.0.0. If None, proxy server configuration will not be set.
connection_timeout (
longorNone) –Connection timeout in seconds.
. This attribute was added in vSphere API 7.0.0.0. If None, connection timeout will be unset.
kmip_server (
Providers.KmipServerInfo) – Configuration information for KMIP based key server. This attribute was added in vSphere API 7.0.0.0. This attribute is optional and it is only relevant when the value oftypeisProviders.KeyServerInfo.Type.KMIP.
Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.KeyServerInfo.Typeclass list the key server types. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theTypeinstance.
Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KeyServerUpdateSpecclass contains attributes that describe new configuration for an existing key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Providers.KeyServerUpdateSpec.TypeorNone) –Type of the key server.
. This attribute was added in vSphere API 7.0.0.0. If None, key server type and configuration information will remain unchanged. In this case all key server configuration information fields (e.g KMIP) should be unset.
description (
strorNone) –Description of the key server.
. This attribute was added in vSphere API 7.0.0.0. If None, description will remain unchanged.
proxy_server (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddressorNone) –Proxy server configuration.
. This attribute was added in vSphere API 7.0.0.0. If None, proxy server configuration will remain unchanged.
connection_timeout (
longorNone) –Connection timeout in seconds.
. This attribute was added in vSphere API 7.0.0.0. If None, connection timeout will remain unchanged.
kmip_server (
Providers.KmipServerUpdateSpecorNone) –Configuration information for KMIP based key server.
. This attribute was added in vSphere API 7.0.0.0. If None, kmip server configuration will remain unchanged.
Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.KeyServerUpdateSpec.Typeclass list the key server types. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theTypeinstance.
Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KmipServerCreateSpecclass contains attributes that describe Key Management Interoperability Protocol (KMIP) desired key server configuration. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
servers (
listofProviders.Server) –List of Key Management Interoperability Protocol (KMIP) compliant key servers.
Key servers must be configured for active-active replication. If the server port is None, a default value for KMIP’s port will be used.. This attribute was added in vSphere API 7.0.0.0.
username (
strorNone) – Username for authentication. This attribute was added in vSphere API 7.0.0.0. If None, no username will be added.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KmipServerInfoclass contains attributes that describe the current configuration of a KMIP based key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
servers (
listofProviders.Server) – List of KMIP compliant key servers. This attribute was added in vSphere API 7.0.0.0.username (
strorNone) –Username for authentication.
. This attribute was added in vSphere API 7.0.0.0. If None, username will not be set.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.KmipServerUpdateSpecclass contains attributes that describe new configuration for KMIP based key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
servers (
listofProviders.ServerorNone) –List of KMIP compliant key servers.
Key servers must be configured for active-active replication. If the server port is None, a default value for KMIP’s port will be used.
. This attribute was added in vSphere API 7.0.0.0. If None, server configuration will remain unchanged.
username (
strorNone) –Username for authentication.
. This attribute was added in vSphere API 7.0.0.0. If None, username will remain unchanged.
Resource type for a Key Provider. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.Serverclass contains attributes that describe a connection endpoint. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str) –Name of the server.
A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0.0.
address (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress) – The server’s address. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.ServerInfoclass contains attributes that describe the status of a key server. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
health (
Providers.Health) – The connection status health of the server. This attribute was added in vSphere API 7.0.0.0.details (
listofcom.vmware.vapi.std_client.LocalizableMessage) –Details regarding the health of the server connection.
When the service
Providers.Healthis notProviders.Health.OK, this attribute will provide an actionable description of the issue.. This attribute was added in vSphere API 7.0.0.0.client_trust_server (
bool) – Whether this client trusts the server. This attribute was added in vSphere API 7.0.0.0.server_trust_client (
bool) – Whether the server trusts this client. This attribute was added in vSphere API 7.0.0.0.name (
str) – Name of the server. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.Statusclass contains attributes that describe the status of the Key Provider. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
health (
Providers.Health) – The health of the provider. This attribute was added in vSphere API 7.0.0.0.details (
listofcom.vmware.vapi.std_client.LocalizableMessage) –Details regarding the health of the provider.
When the service
Providers.Healthis notProviders.Health.OK, this attribute will provide an actionable description of the issue.. This attribute was added in vSphere API 7.0.0.0.servers (
listofProviders.ServerInfo) – Health of the key servers. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.Summaryclass contains attributes that summarize a provider. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
provider (
str) –Name of the provider.
A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0.0. 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.trust_authority_clusters.kms.Provider. 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.trust_authority_clusters.kms.Provider.health (
Providers.Health) – Health of the provider in the cluster. This attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
Providers.UpdateSpecclass contains attributes that describe the new configuration for an existing provider. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
master_key_id (
strorNone) –Master key identifier created for the provider.
A unique Key identifier.
. This attribute was added in vSphere API 7.0.0.0. If None, masterKeyId will remain unchanged.
key_server (
Providers.KeyServerUpdateSpecorNone) –Key server associated with this provider.
. This attribute was added in vSphere API 7.0.0.0. If None, key server configuration will remain unchanged.
Add a new Key Provider. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Providers.CreateSpec) – Provider information.
- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsIf the provider already exists.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the spec is invalid or cluster id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.
Remove a Key Provider. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.provider (
str) – Identifier of the provider. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider.
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster or provider id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster or provider is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.
Return information about a Key Provider. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.provider (
str) – Identifier of the provider. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster or provider id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster or provider is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.
Return a list of summary of Key Providers. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.
Update an existing Key Provider. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.provider (
str) – Identifier of the provider. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider.spec (
Providers.UpdateSpec) – Provider information.
- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster or provider id is empty, or the spec is invalid.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster or provider is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.
Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
ServiceStatusclass provides methods to get the Key Provider Service health status. This class was added in vSphere API 7.0.0.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
Bases:
vmware.vapi.bindings.enum.EnumThe
ServiceStatus.Healthclass defines the possible service health states. This enumeration was added in vSphere API 7.0.0.0.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
- Parameters
string (
str) – String value for theHealthinstance.
Service is not functioning. This class attribute was added in vSphere API 7.0.0.0.
No status available. This class attribute was added in vSphere API 7.0.0.0.
Service is functioning normally. This class attribute was added in vSphere API 7.0.0.0.
Service is functioning, however there is an issue that requires attention. This class attribute was added in vSphere API 7.0.0.0.
Bases:
vmware.vapi.bindings.struct.VapiStructThe
ServiceStatus.Infoclass contains information that describes the status of the service. This class was added in vSphere API 7.0.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
health (
ServiceStatus.Health) – The service health status. This attribute was added in vSphere API 7.0.0.0.details (
listofcom.vmware.vapi.std_client.LocalizableMessage) –Details regarding the health of the service.
When the service
ServiceStatus.Healthis notServiceStatus.Health.OKorServiceStatus.Health.NONE, this member will provide an actionable description of the issues present.. This attribute was added in vSphere API 7.0.0.0.
Return the Key Provider Service health in the given cluster. This method was added in vSphere API 7.0.0.0.
- Parameters
cluster (
str) – Identifier of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.ErrorFor any other error.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentIf the cluster id is empty.- Raise
com.vmware.vapi.std.errors_client.NotFoundIf the cluster is not found.- Raise
com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance