REST API - set-task

vcenter trusted infrastructure trust authority clusters kms providers credential: set-task

Set the key server credential. This operation was added in vSphere API 7.0.0.

Request:

HTTP request

PUT https://{server}/api/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers/{provider}/credential

?vmw-task=true
"secret string"

Path Parameters

Name Type Description
Required
cluster string Identifier of the cluster.
provider string Identifier of the provider.

Body Parameters:

Name Type Description
bold = required
- secret KMIP KMS password or AWS access key.

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
400 invalid_argument If cluster or provider id are empty.
404 not_found If the provider or cluster is not found.
401 unauthenticated If the caller is not authenticated.
500 error If any other error occurs.