TrustedCluster Category | Vmware PowerCLI Reference

Trusted Cluster Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-TrustedCluster cmdlet. See example below:

# Retrieves the trusted cluster with a name mycluster from the connected workload vCenter Server system.

Get-TrustedCluster -Name mycluster

Step 2 : Run commands from the CRUD group

You can UPDATE objects by using Add-TrustedClusterAttestationServiceInfo cmdlet. See example below:

# Adds the attestation service information configured in the workload vCenter Server system to the trusted hosts in the trusted cluster named myCluster.

$attestService = Get-AttestationServiceInfo Add-TrustedClusterAttestationServiceInfo -TrustedCluster myCluster -AttestationServiceInfo $attestService
You can REMOVE objects by using Remove-TrustedClusterAttestationServiceInfo cmdlet. See example below:

# Removes the attestation services information configured in the trusted mycluster cluster.

$cluster = Get-TrustedCluster mycluster Remove-TrustedClusterAttestationServiceInfo -TrustedCluster mycluster -AttestationServiceInfo $cluster.AttestationServiceInfo

Step 3: Explore More Related Commands:


Add-TrustedClusterKeyProviderServiceInfo This cmdlet adds the key provider service information configured in the workload vCenter Server system to the trusted hosts in the given trusted cluster.
Get-TrustedClusterAppliedStatus This cmdlet retrieves the applied status of the trusted service information on the trusted clusters in the workload vCenter Server system.
Remove-TrustedClusterKeyProviderServiceInfo This cmdlet removes the key provider services information from the specified trusted cluster in the workload vCenter Server system.
Set-TrustedCluster This cmdlet modifies the configuration of the trusted clusters in the workload vCenter Server system.