operationId: databases_get_ca
summary: Retrieve the Public Certificate
description: |
To retrieve the public certificate used to secure the connection to the database cluster send a GET request to
`/v2/databases/$DATABASE_ID/ca`.
The response will be a JSON object with a `ca` key. This will be set to an object
containing the base64 encoding of the public key certificate.
tags:
- Databases
parameters:
- $ref: 'parameters.yml#/database_cluster_uuid'
responses:
'200':
$ref: 'responses/ca.yml'
'401':
$ref: '../../shared/responses/unauthorized.yml'
'404':
$ref: '../../shared/responses/not_found.yml'
'429':
$ref: '../../shared/responses/too_many_requests.yml'
'500':
$ref: '../../shared/responses/server_error.yml'
default:
$ref: '../../shared/responses/unexpected_error.yml'
x-codeSamples:
- $ref: 'examples/curl/databases_get_ca.yml'
- $ref: 'examples/go/databases_get_ca.yml'
- $ref: 'examples/python/databases_get_ca.yml'
security:
- bearer_auth:
- 'database:read'