REST API - update-task

vcenter trusted infrastructure trust authority clusters attestation tpm2 settings: update-task

Set the TPM 2.0 protocol settings. This operation was added in vSphere API 7.0.0.

Request:

HTTP request

PATCH https://{server}/api/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/attestation/tpm2/settings

?vmw-task=true
{
    "require_endorsement_keys"true,
    "require_certificate_validation"true
}

Path Parameters

Name Type Description
Required
cluster string The id of the cluster on which the operation will be executed.

Body Parameters:

Name Type Description
bold = required
- update_spec The settings.
-.require_endorsement_keys boolean Require registered TPM endorsement keys. This attribute was added in vSphere API 7.0.0.

Optional. If unset the current state will remain unchanged.

-.require_certificate_validation boolean Require TPM endorsement key certificate validation. This attribute was added in vSphere API 7.0.0.

Optional. If unset the current state will remain unchanged.

Response:

HTTP Status Code: 202

Response Body Structure:

"obj-103"

Headers:

None

Type:

Name Type Description
bold = required
- string

Errors:

HTTP Status Code Type Description
500 error if there is a generic error.
400 invalid_argument if the spec is invalid or cluster id is empty.
404 not_found if cluster doesn't match to any cluster in the vCenter.
401 unauthenticated if the caller is not authenticated.