You can use interfaces from the com.vmware.vcenter.trusted_infrastructure.trust_authority_hosts package to retrieve information about Attestation Service and Key Provider Service instances running on hosts.

You can use the retrieved information to connect to the hosts running the vSphere Trust Authority components.

Prerequisites

  • Verify that you have access to a working vSphere Trust Authority environment.
  • Verify that you have Trusted Infrastructure administrative privileges.

Procedure

  1. Retrieve detailed information, including the certificates, about the Attestation Service instance running on a Trust Authority Host by calling the get(java.lang.String host) method of the Attestation interface.
  2. List Trust Authority Hosts running an Attestation Service instance by using filters by calling the list(AttestationTypes.FilterSpec spec, AttestationTypes.SummaryType projection) method of the Attestation interface.
  3. Retrieve detailed information, including the certificates, about the Key Provider Service instance running on a Trust Authority Host by calling the get(java.lang.String host) method of the Kms interface.
  4. List Trust Authority Hosts running a Key Provider Service instance by using filters by calling the list(KmsTypes.FilterSpec spec, KmsTypes.SummaryType projection) method of the Kms interface.