Client API: Cloud Compute: Backups
The 5 Client API operations for backups.
Part of Cloud Compute.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/client/vps/{uuid}/backups |
List backups for this instance |
| POST | /api/v1/client/vps/{uuid}/backups |
Create a new backup of this instance |
| GET | /api/v1/client/vps/{uuid}/backups/automatic |
The instance's automatic backups, for its Backups tab |
| DELETE | /api/v1/client/vps/{uuid}/backups/{backup_id} |
Delete a backup |
| POST | /api/v1/client/vps/{uuid}/backups/{backup_id}/restore |
Restore from a backup |
List backups for this instance
Section titled List backups for this instanceGET /api/v1/client/vps/{uuid}/backups
List backups for this instance.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Create a new backup of this instance
Section titled Create a new backup of this instancePOST /api/v1/client/vps/{uuid}/backups
Create a new backup of this instance.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
note |
string or null | no |
mode |
string | no |
compress |
string | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
The instance's automatic backups, for its Backups tab
Section titled The instance's automatic backups, for its Backups tabGET /api/v1/client/vps/{uuid}/backups/automatic
The instance's automatic backups, for its Backups tab.
{available, frequency, keep, latest_backup_at, next_run_at, last_run_at, last_error, automatic_backup_ids, backups, service_id}: available is
whether its automatic backups add-on is on, frequency weekly or
daily, keep how many automatic backups it keeps, and backups
every backup being taken or kept, newest first, each with its origin
(auto or manual). Platform only: a brand sells its own catalogue.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Delete a backup
Section titled Delete a backupDELETE /api/v1/client/vps/{uuid}/backups/{backup_id}
Delete a backup.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
backup_id |
path | integer | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Restore from a backup
Section titled Restore from a backupPOST /api/v1/client/vps/{uuid}/backups/{backup_id}/restore
Restore from a backup. This will restart the VPS.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
backup_id |
path | integer | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |