Skip to main content
POST
/
v1
/
databases
/
{id}
/
credentials
/
certificate
/
reset
Reset Database Certificates
curl --request POST \
  --url https://api.vertracloud.app/v1/databases/{id}/credentials/certificate/reset
{
  "response": {
    "pem": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "crt": "-----BEGIN CERTIFICATE-----\nMIID...\n-----END CERTIFICATE-----",
    "key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----"
  }
}
id
string
required
The ID of the database to reset certificates for.

Response

response
object
The new 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_RESET_CERTIFICATES: Failed to reset the certificates.
message
string
A descriptive message providing additional details about the error.
{
  "code": "UNAUTHORIZED"
}