backups
Creates, updates, deletes, gets or lists a backups
resource.
Overview
Name | backups |
Type | Resource |
Id | digitalocean.databases.backups |
Fields
Name | Datatype | Description |
---|---|---|
created_at | string | A time value given in ISO8601 combined date and time format at which the backup was created. |
size_gigabytes | number | The size of the database backup in GBs. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
databases_list_backups | SELECT | database_cluster_uuid | To list all of the available backups of a PostgreSQL or MySQL database cluster, send a GET request to /v2/databases/$DATABASE_ID/backups . Note: Backups are not supported for Redis clusters. The result will be a JSON object with a backups key . This will be set to an array of backup objects, each of which will contain the size of the backup and the timestamp at which it was created. |
SELECT
examples
To list all of the available backups of a PostgreSQL or MySQL database cluster, send a GET request to /v2/databases/$DATABASE_ID/backups
. Note: Backups are not supported for Redis clusters. The result will be a JSON object with a backups key
. This will be set to an array of backup objects, each of which will contain the size of the backup and the timestamp at which it was created.
SELECT
created_at,
size_gigabytes
FROM digitalocean.databases.backups
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}';