Install Certificate

This API enables you to install a certificate with the specified ID.

Syntax

The syntax for calling this method is:

PUT <Base_Url>/SSLCertificate/{certificateId}/install

A sample API call is as follows:

PUT https://123.123.123.123/vCenter-CB/api/SSLCertificate/999/install

User Privilege

None. Any user authenticated with vCenter Chargeback Manager can use this API.

Request Body Parameters

This API does not require any request parameters.

API Response

The API returns a response XML that indicates the status of the operation. A sample response is provided here.

Error Response

The following table explains the error codes displayed by the API.

Error Code

Description

VCB_ERR_TEMP_SSL_CERTIFICATE_NOT_FOUND

Certificate with the specified ID is not found.

VCB_ERR_SSL_CERTIFICATE_IMPORT_FAILED

Failed to import the certificate with the specified ID.

VCB_ERR_SSL_CERTIFICATE_ALREADY_IMPORTED

Certificate with the specified ID is already installed.