com.vmware.vcenter.trusted_infrastructure.trusted_clusters package¶
Submodules¶
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.attestation_client module¶
The
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.attestation_client
module provides classes for configuring Attestation Services for Trusted
Clusters.
-
class
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.attestation_client.Services(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Servicesclass contains information about thecom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstances a cluster uses. This class was added in vSphere API 7.0.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CreateSpec(type=None, service=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.CreateSpecclass contains the data necessary for adding acom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesto the environment. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Services.CreateSpec.SourceType) – Source of truth for the configuration of the Attestation Service. This attribute was added in vSphere API 7.0.0.service (
str) – The service’s unique ID. This attribute was added in vSphere API 7.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_platform.attestation.Service. 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_platform.attestation.Service. This attribute is optional and it is only relevant when the value oftypeisServices.CreateSpec.SourceType.SERVICE.trust_authority_cluster (
str) – The attestation cluster’s unique ID. This attribute was added in vSphere API 7.0.0. This attribute is optional and it is only relevant when the value oftypeisServices.CreateSpec.SourceType.CLUSTER.
-
class
SourceType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Services.CreateSpec.SourceTypeclass lists options which source the the Attestation Service to use for its configuration. This enumeration was added in vSphere API 7.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 theSourceTypeinstance.
-
CLUSTER= SourceType(string='CLUSTER')¶ The Attestation Service will be configured based on an ID of a whole attestation cluster. This class attribute was added in vSphere API 7.0.0.
-
SERVICE= SourceType(string='SERVICE')¶ The Attestation Service will be configured based on an ID of an specific Attestation Service. This class attribute was added in vSphere API 7.0.0.
-
class
FilterSpec(services=None, address=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.FilterSpecclass contains the data necessary for identifying acom.vmware.vcenter.trusted_infrastructure.attestation_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
services (
setofstrorNone) – A set of IDs by which to filter the services. This attribute was added in vSphere API 7.0.0. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:com.vmware.vcenter.trusted_platform.attestation.Service. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:com.vmware.vcenter.trusted_platform.attestation.Service. If None, the services will not be filtered by ID.address (
listofcom.vmware.vcenter.trusted_infrastructure_client.NetworkAddressorNone) – The service’s address. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by address.group (
setofstrorNone) – The group determines whichcom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstances can accept reports issued by thiscom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstance. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by group.trust_authority_cluster (
setofstrorNone) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by trustAuthorityCluster.
-
class
Info(address=None, trusted_ca=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.Infoclass contains all the stored information about acom.vmware.vcenter.trusted_infrastructure.attestation_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
address (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress) – The service’s address. This attribute was added in vSphere API 7.0.0.trusted_ca (
com.vmware.vcenter.trusted_infrastructure_client.X509CertChain) – The service’s TLS certificate chain. This attribute was added in vSphere API 7.0.0.group (
str) – The group ID determines whichcom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstances thiscom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicescan communicate with. This attribute was added in vSphere API 7.0.0.trust_authority_cluster (
str) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0.
-
class
Summary(service=None, address=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.Summaryclass contains a summary of acom.vmware.vcenter.trusted_infrastructure.attestation_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
service (
str) – The service’s unique identifier. This attribute was added in vSphere API 7.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_platform.attestation.Service. 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_platform.attestation.Service.address (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress) – The service’s address. This attribute was added in vSphere API 7.0.0.group (
str) – The group determines whichcom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstances can accept reports issued by thiscom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstance. This attribute was added in vSphere API 7.0.0.trust_authority_cluster (
str) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0.
-
create_task(cluster, spec)¶ Configures the cluster to use a new
com.vmware.vcenter.trusted_infrastructure.attestation_client.Services. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Services.CreateSpec) – Describes thecom.vmware.vcenter.trusted_infrastructure.attestation_client.Services.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsif thecom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesis already configured for this cluster- Raise
com.vmware.vapi.std.errors_client.Errorfor any other error.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentif the CreateSpec is not valid.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster ID is not valid.- Raise
com.vmware.vapi.std.errors_client.UnableToAllocateResourceif all the hosts in the cluster do not have VMware vSphere Trust Authority enabled license.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.
-
delete_task(cluster, service)¶ Marks the
com.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesso that it will no longer be used by the cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – the unique ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.service (
str) – thecom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstance unique identifier. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_platform.attestation.Service.
- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif thecom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesor the cluster are not found.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.
-
get(cluster, service)¶ Returns detailed information for a
com.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesconfigured for a cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.service (
str) – The ID of the service. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_platform.attestation.Service.
- Return type
- Returns
Info for the specified
com.vmware.vcenter.trusted_infrastructure.attestation_client.Services.- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster or the service ID is invalid.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
TrustedAdmin.ReadTrustedHosts.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresSystem.View.
-
list(cluster, spec=None)¶ Returns the list of all
com.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesconfigured for a cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Services.FilterSpecorNone) – Only return services matching the filters. If {\@term.unset} return all services.
- Return type
- Returns
List of all
com.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesused by this cluster.- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster ID is invalid.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
TrustedAdmin.ReadTrustedHosts.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresSystem.View.
-
class
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.attestation_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.kms_client module¶
The com.vmware.vcenter.trusted_infrastructure.trusted_clusters.kms_client
module provides classes for configuring Key Provider Services for Trusted
Clusters.
-
class
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.kms_client.Services(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Servicesclass contains information about thecom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstances a cluster uses. This class was added in vSphere API 7.0.0.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
class
CreateSpec(type=None, service=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.CreateSpecclass contains the data necessary for adding acom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesto the environment. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
Services.CreateSpec.SourceType) – Source of truth for the configuration of the Key Provider Service. This attribute was added in vSphere API 7.0.0.service (
str) – The service’s unique ID. This attribute was added in vSphere API 7.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_platform.kms.Service. 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_platform.kms.Service. This attribute is optional and it is only relevant when the value oftypeisServices.CreateSpec.SourceType.SERVICE.trust_authority_cluster (
str) – The attestation cluster’s unique ID. This attribute was added in vSphere API 7.0.0. This attribute is optional and it is only relevant when the value oftypeisServices.CreateSpec.SourceType.CLUSTER.
-
class
SourceType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Services.CreateSpec.SourceTypeclass lists options which source the the Key Provider Service to use for its configuration. This enumeration was added in vSphere API 7.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 theSourceTypeinstance.
-
CLUSTER= SourceType(string='CLUSTER')¶ The Key Provider Service will be configured based on an ID of a whole attestation cluster. This class attribute was added in vSphere API 7.0.0.
-
SERVICE= SourceType(string='SERVICE')¶ The Key Provider Service will be configured based on an ID of an specific Key Provider Service. This class attribute was added in vSphere API 7.0.0.
-
class
FilterSpec(services=None, address=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.FilterSpecclass contains the data necessary for identifying acom.vmware.vcenter.trusted_infrastructure.kms_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
services (
setofstrorNone) – A set of IDs by which to filter the services. This attribute was added in vSphere API 7.0.0. When clients pass a value of this class as a parameter, the attribute must contain identifiers for the resource type:com.vmware.vcenter.trusted_platform.kms.Service. When methods return a value of this class as a return value, the attribute will contain identifiers for the resource type:com.vmware.vcenter.trusted_platform.kms.Service. If None, the services will not be filtered by ID.address (
listofcom.vmware.vcenter.trusted_infrastructure_client.NetworkAddressorNone) – The service’s address. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by address.group (
setofstrorNone) – The group determines reports issued by whichcom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstances can thiscom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstance accept. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by group.trust_authority_cluster (
setofstrorNone) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0. If None, the services will not be filtered by trustAuthorityCluster.
-
class
Info(address=None, trusted_ca=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.Infoclass contains all the stored information about acom.vmware.vcenter.trusted_infrastructure.kms_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
address (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress) – The service’s address. This attribute was added in vSphere API 7.0.0.trusted_ca (
com.vmware.vcenter.trusted_infrastructure_client.X509CertChain) – The service’s TLS certificate chain. This attribute was added in vSphere API 7.0.0.group (
str) – The group determines reports issued by whichcom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstances can thiscom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstance accept. This attribute was added in vSphere API 7.0.0.trust_authority_cluster (
str) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0.
-
class
Summary(service=None, address=None, group=None, trust_authority_cluster=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Services.Summaryclass contains a summary of acom.vmware.vcenter.trusted_infrastructure.kms_client.Services. This class was added in vSphere API 7.0.0.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
service (
str) – The service’s unique identifier. This attribute was added in vSphere API 7.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_platform.kms.Service. 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_platform.kms.Service.address (
com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress) – The service’s address. This attribute was added in vSphere API 7.0.0.group (
str) – The group determines reports issued by whichcom.vmware.vcenter.trusted_infrastructure.attestation_client.Servicesinstances can thiscom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstance accept. This attribute was added in vSphere API 7.0.0.trust_authority_cluster (
str) – The cluster determines which Trust Authority Cluster thisServicesbelongs to. This attribute was added in vSphere API 7.0.0.
-
create_task(cluster, spec)¶ Configures the cluster to use a new
com.vmware.vcenter.trusted_infrastructure.kms_client.Services. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Services.CreateSpec) – Describes thecom.vmware.vcenter.trusted_infrastructure.kms_client.Services.
- Return type
- class
vmware.vapi.stdlib.client.task.Task
- Returns
Task instance
- Raise
com.vmware.vapi.std.errors_client.AlreadyExistsif thecom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesis already configured for this cluster- Raise
com.vmware.vapi.std.errors_client.Errorfor any other error.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentif the CreateSpec is not valid.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster ID is not valid.- Raise
com.vmware.vapi.std.errors_client.UnableToAllocateResourceif all the hosts in the cluster do not have VMware vSphere Trust Authority enabled license.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.
-
delete_task(cluster, service)¶ Marks the
com.vmware.vcenter.trusted_infrastructure.kms_client.Servicesso that it will no longer be used by the cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – the unique ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.service (
str) – thecom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesinstance unique identifier. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_platform.kms.Service.
- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif thecom.vmware.vcenter.trusted_infrastructure.kms_client.Servicesor the cluster are not found.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.
-
get(cluster, service)¶ Returns detailed information for a
com.vmware.vcenter.trusted_infrastructure.kms_client.Servicesconfigured for a cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.service (
str) – The ID of the service. The parameter must be an identifier for the resource type:com.vmware.vcenter.trusted_platform.kms.Service.
- Return type
- Returns
Info for the specified
com.vmware.vcenter.trusted_infrastructure.kms_client.Services.- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster or the service ID is invalid.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
TrustedAdmin.ReadTrustedHosts.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresSystem.View.
-
list(cluster, spec=None)¶ Returns the list of all
com.vmware.vcenter.trusted_infrastructure.kms_client.Servicesconfigured for a cluster. This method was added in vSphere API 7.0.0.- Parameters
cluster (
str) – The ID of the cluster. The parameter must be an identifier for the resource type:ClusterComputeResource.spec (
Services.FilterSpecorNone) – Only return services matching the filters. If {\@term.unset} return all services.
- Return type
- Returns
List of all
com.vmware.vcenter.trusted_infrastructure.kms_client.Servicesused by this cluster.- Raise
com.vmware.vapi.std.errors_client.Errorif there is a generic error.- Raise
com.vmware.vapi.std.errors_client.NotFoundif the cluster ID is invalid.- Raise
com.vmware.vapi.std.errors_client.Unauthenticatedif the user can not be authenticated.- Raise
com.vmware.vapi.std.errors_client.Unauthorizedif you do not have all of the privileges described as follows:Method execution requires
TrustedAdmin.ReadTrustedHosts.The resource
ClusterComputeResourcereferenced by the parameterclusterrequiresSystem.View.
-
class
com.vmware.vcenter.trusted_infrastructure.trusted_clusters.kms_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance