Skip to main content
GET
/
v1
/
databases
/
{id}
/
credentials
/
certificate
Get Database Certificate
curl --request GET \
  --url https://api.vertracloud.app/v1/databases/{id}/credentials/certificate
{
  "response": {
    "pem": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "crt": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt

Use this file to discover all available pages before exploring further.

id
string
required
The ID of the database to retrieve the certificate for.

Response

response
object
The certificate details for the database.
{
  "response": {
    "pem": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "crt": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----"
  }
}

Error Responses

code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • DATABASE_NOT_FOUND_OR_FORBIDDEN: The specified database does not exist or the user lacks access.
  • FAILED_TO_GET_CERTIFICATE: Failed to retrieve the certificate.
message
string
A descriptive message providing additional details about the error.
{
  "code": "UNAUTHORIZED"
}