Get Certificate

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

Syntax

The syntax for calling this method is:

GET <Base_Url>/SSLCertificate/{certificateId}

A sample API call is as follows:

GET https://123.123.123.123/vCenter-CB/api/SSLCertificate/999

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 the certificate with the specified ID in a binary form (a .cer file) that can be viewed in a Web browser.

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.