databases
Overview
Name | databases |
Type | Resource |
Id | digitalocean.databases.databases |
Fields
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | database_cluster_uuid, database_name | To show information about an existing database cluster, send a GET request to/v2/databases/$DATABASE_ID/dbs/$DB_NAME .Note: Database management is not supported for Redis clusters. The response will be a JSON object with a db key. This will be set to an objectcontaining the standard database attributes. |
list | SELECT | database_cluster_uuid | To list all of the databases in a clusters, send a GET request to/v2/databases/$DATABASE_ID/dbs .The result will be a JSON object with a dbs key. This will be set to an arrayof database objects, each of which will contain the standard database attributes. Note: Database management is not supported for Redis clusters. |
add | INSERT | database_cluster_uuid, data__name | To add a new database to an existing cluster, send a POST request to/v2/databases/$DATABASE_ID/dbs .Note: Database management is not supported for Redis clusters. The response will be a JSON object with a key called db . The value of this will bean object that contains the standard attributes associated with a database. |
delete | DELETE | database_cluster_uuid, database_name | To delete a specific database, send a DELETE request to/v2/databases/$DATABASE_ID/dbs/$DB_NAME .A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. Note: Database management is not supported for Redis clusters. |
_get | EXEC | database_cluster_uuid, database_name | To show information about an existing database cluster, send a GET request to/v2/databases/$DATABASE_ID/dbs/$DB_NAME .Note: Database management is not supported for Redis clusters. The response will be a JSON object with a db key. This will be set to an objectcontaining the standard database attributes. |
_list | EXEC | database_cluster_uuid | To list all of the databases in a clusters, send a GET request to/v2/databases/$DATABASE_ID/dbs .The result will be a JSON object with a dbs key. This will be set to an arrayof database objects, each of which will contain the standard database attributes. Note: Database management is not supported for Redis clusters. |