Was this page helpful?
pydo
v0.6.0
To retrieve a list of all supported Droplet backup policies, send a GET request to /v2/droplets/backups/supported_policies.
/v2/droplets/backups/supported_policies
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.
A JSON object with an supported_policies key set to an array of objects describing each supported backup policy.
supported_policies
{ "supported_policies": [ { "name": "weekly", "possible_window_starts": [ 0, 4, 8, 12, 16, 20 ], "window_length_hours": 4, "retention_period_days": 28, "possible_days\"": [ "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" ] }, { "name": "daily", "possible_window_starts": [ 0, 4, 8, 12, 16, 20 ], "window_length_hours": 4, "retention_period_days": 7, "possible_days": [] } ] }
Unauthorized
{ "id": "unauthorized", "message": "Unable to authenticate you." }
The resource was not found.
{ "id": "not_found", "message": "The resource you requested could not be found." }
API Rate limit exceeded
{ "id": "too_many_requests", "message": "API Rate limit exceeded." }
Server error.
{ "id": "server_error", "message": "Unexpected server-side error" }
Unexpected error
{ "id": "example_error", "message": "some error message" }
Please try using alternative keywords or simplifying your search terms.