com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms package
Subpackages
Submodules
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client module
The
com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client
module provides the classes for configuring the Key Providers of a Trust
Authority Cluster.
- class com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client.ClientCertificate(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - ClientCertificateinterface provides methods to add and retrieve client certificate. 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.
 - class Info(certificate=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - ClientCertificate.Infoclass contains the client certificate used by the hosts in a cluster for authenticating with the 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
- certificate ( - str) – Public certificate. This attribute was added in vSphere API 7.0.0.0.
 
 - class UpdateSpec(certificate=None, private_key=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - ClientCertificate.UpdateSpecclass contains attributes that describe the client certificate update for a 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
- certificate ( - str) – Public certificate used by every host in the cluster. This attribute was added in vSphere API 7.0.0.0.
- private_key ( - stror- None) – Private part of the certificate. This attribute was added in vSphere API 7.0.0.0. If None, the update request is for a public/private client certificate pair, not for a signed CSR.
 
 
 - create_task(cluster, provider)
- Generate a new self signed client certificate. Existing client certificate is overwritten. The key server will use this certificate to validate the client connection. 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 cluster or provider id are 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.ErrorIf any other error occurs.
 
 - get_task(cluster, provider)
- Return the existing client certificate. 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 cluster or provider id are 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.ErrorIf any other error occurs.
 
 - update_task(cluster, provider, spec)
- Update the client certificate. - The key server will use this certificate to validate the client connection. If a client certificate already exists, it will be replaced. - An optional private key can be specified if the certificate has already been provisioned.. 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 ( - ClientCertificate.UpdateSpec) – The update spec.
 
- Raise
- com.vmware.vapi.std.errors_client.InvalidArgumentIf the certificate or private key is invalid or cluster/provider id are 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.ErrorIf any other error occurs.
 
 
- class com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client.Credential(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- The - Credentialinterface provides methods to add a credential for external key management service(s). 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.
 - set_task(cluster, provider, credential)
- Set the key server credential. 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.
- credential ( - str) – KMIP KMS password or AWS access key.
 
- Raise
- com.vmware.vapi.std.errors_client.InvalidArgumentIf cluster or provider id are empty.
- Raise
- com.vmware.vapi.std.errors_client.NotFoundIf the provider or cluster is not found.
- Raise
- com.vmware.vapi.std.errors_client.UnauthenticatedIf the caller is not authenticated.
- Raise
- com.vmware.vapi.std.errors_client.ErrorIf any other error occurs.
 
 
- class com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client.CurrentPeerCertificates(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- Retrieves the list of TLS certificates used by peer key servers. Those are meant for review. Following approval these certificates should be added as trusted certificates in the - TrustedPeerCertificatesclass. 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.
 - class FilterSpec(server_names=None, trusted=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CurrentPeerCertificates.FilterSpecclass contains attributes used to filter the results when listing remote server certificates. 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
- server_names ( - setof- stror- None) – Names that key server must have to match the filter (see- CurrentPeerCertificates.Summary.server_name). This attribute was added in vSphere API 7.0.0.0. If None or empty, key servers with any name match the filter.
- trusted ( - boolor- None) – Trust status that server certificates must have to match the filter (see- CurrentPeerCertificates.Summary.trusted). This attribute was added in vSphere API 7.0.0.0. If None, trusted and untrusted server certificates match the filter.
 
 
 - class Summary(server_name=None, certificate=None, error_messages=None, trusted=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - CurrentPeerCertificates.Summaryclass contains a summary of the current key server certificates. 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
- server_name ( - str) – Name of the server. This attribute was added in vSphere API 7.0.0.0.
- certificate ( - stror- None) – Server certificate. This attribute was added in vSphere API 7.0.0.0. If None, the certificate cannot be retrieved from the remote system, and- CurrentPeerCertificates.Summary.trustedis undefined. See- CurrentPeerCertificates.Summary.error_messagesfor details.
- error_messages ( - listof- com.vmware.vapi.std_client.LocalizableMessage) –- Server certificate retrieval errors. - Specifies error details when retrieving the remote server certificate fails. This list will be empty when - CurrentPeerCertificates.Summary.certificateis- set.. This attribute was added in vSphere API 7.0.0.0.
- trusted ( - bool) – whether server certificate is already trusted . This attribute was added in vSphere API 7.0.0.0.
 
 
 - list_task(cluster, provider, spec=None)
- Return the remote server certificates. - Contacts the configured key servers and attempts to retrieve their certificates. These certificates might not yet be trusted. - If the returned certificates are to be considered trustworthy, then it must be added to the list of trusted server certificates by adding to the certificates returned by - TrustedPeerCertificates.get()and invoking- TrustedPeerCertificates.update()with the updated- listof certificates.. 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 ( - CurrentPeerCertificates.FilterSpecor- None) – Filter spec. If None, the behavior is equivalent to a- CurrentPeerCertificates.FilterSpecwith all attributes None
 
- 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.
 
 
- class com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_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.trust_authority_clusters.kms.providers_client.TrustedPeerCertificates(config)
- Bases: - vmware.vapi.bindings.stub.VapiInterface- Provides management operations for the TLS certificates trusted for communication with peer key servers. - To obtain the currently used TLS certificates use the - CurrentPeerCertificatesclass. 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.
 - class Info(certificates=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - TrustedPeerCertificates.Infoclass contains x509 certificate list. 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
- certificates ( - listof- str) – List of certificate strings, PEM format. This attribute was added in vSphere API 7.0.0.0.
 
 - class UpdateSpec(certificates=None)
- Bases: - vmware.vapi.bindings.struct.VapiStruct- The - TrustedPeerCertificates.UpdateSpecclass contains attributes that describe the server certificate update for a 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
- certificates ( - listof- stror- None) – Public certificates of key server to trust. This attribute was added in vSphere API 7.0.0.0. If None, the trusted server certificates will not be updated.
 
 - get_task(cluster, provider)
- Return the list of trusted server certificates. 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 cluster or provider id are 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.ErrorIf any other error occurs.
 
 - update_task(cluster, provider, spec)
- Update trusted server certificate(s). - The client will use these certificates to validate the server connection. The existing list of trusted certificates will be overwritten. - The client will not trust the server connection until a server certificate has been set.. 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 ( - TrustedPeerCertificates.UpdateSpec) – The update spec
 
- Raise
- com.vmware.vapi.std.errors_client.InvalidArgumentIf one or more certificates are invalid or the cluster/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.ErrorIf any other error occurs.