REST API - create-task

vcenter trusted infrastructure trust authority clusters kms providers client certificate csr: create-task

Generate a certificate signing request (CSR) for the client certificate. This overwrites any existing CSR.

The CSR will allow the certificate to be signed by a third party. Once the CSR is signed, certificate may be added as a client certificate.

Calling the API repeatedly will result in a generating a new CSR each time.

. This operation was added in vSphere API 7.0.0.

Request:

HTTP request

POST https://{server}/api/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers/{provider}/client-certificate/csr

?vmw-task=true

Path Parameters

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

Response:

HTTP Status Code: 202

Response Body Structure:

"obj-103"

Headers:

None

Type:

Name Type Description
bold = required
- string The client CSR, PEM and host ID which issued it.

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.