REST API - get

esx kms providers client certificate: get

Return the existing client certificate.

Request:

HTTP request

GET https://{server}/api/esx/kms/providers/{provider}/client-certificate

?include_private_key={true}

Path Parameters

Name Type Description
Required
provider string Identifier of the provider.

Query Parameters:

Name Type Description
bold = required
include_private_key boolean Include private key.

Optional. If unset the private key will not be included.

Response:

HTTP Status Code: 200

Response Body Structure:

{
    "certificate""string",
    "private_key""secret string"
}

Headers:

None

Type:

Name Type Description
bold = required
- info A structure containing the certificate.
-.certificate string Certificate.

PEM format.

-.private_key secret Private key.

PEM format.

Optional. If unset, privateKey won't have key data.

Errors:

HTTP Status Code Type Description
400 invalid_argument if the provider Id is empty.
404 not_found if the provider is not found.
401 unauthenticated if the caller is not authenticated.
403 unauthorized if the caller is not authorized.
500 error if any other error occurs.