Skip to main content

backups_supported_policies

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

Overview

Namebackups_supported_policies
TypeResource
Iddigitalocean.droplets.backups_supported_policies

Fields

NameDatatypeDescription
namestringThe name of the Droplet backup plan.
possible_daysarrayThe day of the week the backup will occur.
possible_window_startsarrayAn array of integers representing the hours of the day that a backup can start.
retention_period_daysintegerThe number of days that a backup will be kept.
window_length_hoursintegerThe number of hours that a backup window is open.

Methods

NameAccessible byRequired ParamsDescription
droplets_list_supported_backup_policiesSELECTTo retrieve a list of all supported Droplet backup policies, send a GET request to /v2/droplets/backups/supported_policies.

SELECT examples

To retrieve a list of all supported Droplet backup policies, send a GET request to /v2/droplets/backups/supported_policies.

SELECT
name,
possible_days,
possible_window_starts,
retention_period_days,
window_length_hours
FROM digitalocean.droplets.backups_supported_policies
;