cas
Creates, updates, deletes, gets or lists a cas
resource.
Overview
Name | cas |
Type | Resource |
Id | digitalocean.databases.cas |
Fields
Name | Datatype | Description |
---|---|---|
certificate | string | base64 encoding of the certificate used to secure database connections |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
databases_get_ca | SELECT | database_cluster_uuid | 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
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 }}';