Skip to main content

cas

Creates, updates, deletes, gets or lists a cas resource.

Overview

Namecas
TypeResource
Iddigitalocean.databases.cas

Fields

NameDatatypeDescription
certificatestringbase64 encoding of the certificate used to secure database connections

Methods

NameAccessible byRequired ParamsDescription
databases_get_caSELECTdatabase_cluster_uuidTo 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.

SELECT examples

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.

SELECT
certificate
FROM digitalocean.databases.cas
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}';