You can use the TrustAuthorityClusters interface from the com.vmware.vcenter.trusted_infrastructure package to perform vSphere Trust Authority Cluster management operations.
You can retrieve details about vSphere Trust Authority Clusters, update the state of a cluster, and check the result of the update operation.
Prerequisites
- Verify that you have access to a working vSphere Trust Authority environment.
- Verify that you have Trusted Infrastructure administrative privileges.
Procedure
- Retrieve a list of clusters for a vCenter Server instance that are configured as Trust Authority Clusters by calling the list(TrustAuthorityClustersTypes.FilterSpec spec) method of the TrustAuthorityClusters interface.
- Update the state of a cluster by calling the update_Task(java.lang.String cluster, TrustAuthorityClustersTypes.UpdateSpec spec) method of the TrustAuthorityClusters interface.
- Check the result of the last update operation for the same cluster by calling the get(java.lang.String cluster) method of the TrustAuthorityClusters interface.