REST API - count_certs

vcenter certificate authority certificate: count certs

Get the count of certificates on the server. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Request:

HTTP request

GET https://{server}/rest/vcenter/certificate-authority/certificate

?action=count-certs
&status=string

Request Query Parameters:

Name Type Description
bold = required
status string The information is about status of certificate in query.

Response:

HTTP Status Code: 200

Representation:

{
    "value""string"
}

Response Type:

Name Type Description
bold = required
value string count of certificate in String format.

Errors:

HTTP Status Code Type Description
400 invalid_argument if provided argument is not in [CERTIFICATE_ACTIVE, CERTIFICATE_REVOKED, CERTIFICATE_ALL].
500 internal_server_error if error happen on server side.
500 error If the system failed to return the count of certificate.