Get Domain Certificates

Get Domain Certificates

Get latest generated certificate(s) in a domain.

Request
URI
GET
https://{api_host}/v1/domains/{id}/certificates
COPY
Path Parameters
string
id
Required

Domain ID or Name

id example
3E86FBAD-8984-4D4B-992D-F0C49857572A

Responses
200

Ok

Returns PageOfCertificate of type(s) application/json
{
    "elements": [
        {
            "isInstalled": false,
            "version": "V3",
            "serialNumber": "46:85:19:77:36:12:67:26",
            "issuedTo": "sfo-vc01.rainpole.io",
            "resourceType": "One among: SDDC_MANAGER, PSC, VCENTER, NSX_MANAGER, NSXT_MANAGER, VRA, VRLI, VROPS, VRSLCM, VXRAIL_MANAGER, NSX_ALB, ESXI",
            "resourceName": "string",
            "issuedBy": "CN=OpenSSL CA, OU=VCF, O=VMware, L=Bengaluru, ST=Karnataka, C=IN",
            "notBefore": "2020-01-01T00:00:00Z",
            "notAfter": "2021-02-02T00:00:00Z",
            "signatureAlgorithm": "SHA256withRSA",
            "subject": "CN=sfo-vc01.rainpole.io, OU=VCF, O=VMware, L=Bengaluru, ST=Karnataka, C=IN",
            "domain": "3E86FBAD-8984-4D4B-992D-F0C49857572A",
            "subjectAlternativeName": [
                "sfo-vc01.rainpole.io"
            ],
            "publicKey": "D6:FD:DF:33:F1:...",
            "publicKeyAlgorithm": "One among: RSA",
            "keySize": "One among: 2048, 3072, 4096",
            "thumbprintAlgorithm": "SHA-256",
            "thumbprint": "59:24:D5:18:04:A0:26:B0:A4:05:EA:82:60:95:82:A2:4B:F6:31:FB:81:93:01:F3:29:7D:34:9C:D3:05:39:90",
            "numberOfDaysToExpire": 398,
            "expirationStatus": "One among: ACTIVE, ABOUT_TO_EXPIRE, EXPIRED",
            "pemEncoded": "-----BEGIN CERTIFICATE-----\nMIIFq...\n-----END CERTIFICATE-----",
            "getCertificateError": "Status : NOT_TRUSTED, Message : Certificate Expired",
            "operationType": "One among: GENERATE_CSR, GENERATE_CERTIFICATE, REPLACE_CERTIFICATE",
            "operationStatus": "One among: PENDING, Pending, IN_PROGRESS, In Progress, SUCCESSFUL, Successful, FAILED, Failed, CANCELLED, Cancelled, COMPLETED_WITH_WARNING, SKIPPED",
            "operationMessage": "string",
            "caChain": [
                "Certificate Object"
            ]
        }
    ],
    "pageMetadata": {
        "pageNumber": 0,
        "pageSize": 0,
        "totalElements": 0,
        "totalPages": 0
    }
}
array of object
elements
Optional

The list of elements included in this page

object
pageMetadata
Optional

Represents pageable elements pagination metadata


404

Not Found

Returns Error of type(s) application/json
"Error Object"
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of object
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


500

InternalServerError

Returns Error of type(s) application/json
"Error Object"
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of object
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/v1/domains/{id}/certificates