Create Trusted Clusters Attestation Services Task
Configures the cluster to use a the given registered Attestation Service.
Request
URLURL
Path Parameters
Path Parameters
The ID of the cluster. The parameter must be an identifier for the resource type: ClusterComputeResource.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Describes the registered instance of the Attestation Service
{
"type": "SERVICE"
}
The Services.CreateSpec.SourceType enumerated type specifies the source of truth the Attestation Service will use for its configuration.
SERVICE : The Attestation Service will be configured based on an ID of an specific Attestation Service.
CLUSTER : The Attestation Service will be configured based on an ID of a whole attestation cluster.
Possible values are: SERVICE , CLUSTER
The service’s unique ID. This field is optional and it is only relevant when the value of Services.CreateSpec.type is SERVICE. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.attestation.Service. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.attestation.Service.
The attestation cluster’s unique ID. This field is optional and it is only relevant when the value of Services.CreateSpec.type is CLUSTER.
Authentication
Response
Response BodyResponse Body
An identifier for the task created by this API invocation will be returned. If the non-async version of the operation returns a value, this id can be used with the CIS Get Task operation to fetch that value. The normal description of this operation’s return value will follow if one exists. ID of the configured Attestation Service instance. The result will be an identifier for the resource type: com.vmware.vcenter.trusted_infrastructure.attestation.Service.
Errors
com.vmware.vapi.std.errors.already_exists : if the Attestation Service is already configured for this cluster | com.vmware.vapi.std.errors.invalid_argument : if the CreateSpec is not valid.
com.vmware.vapi.std.errors.error : for any other error. | com.vmware.vapi.std.errors.unable_to_allocate_resource : if all the hosts in the cluster do not have VMware vSphere Trust Authority enabled license.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: create_task