Client API: Cloud Compute: Snapshots
The 4 Client API operations for snapshots.
Part of Cloud Compute.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/client/vps/{uuid}/snapshots |
List snapshots |
| POST | /api/v1/client/vps/{uuid}/snapshots |
Create snapshot |
| DELETE | /api/v1/client/vps/{uuid}/snapshots/{snapshot_id} |
Delete snapshot |
| POST | /api/v1/client/vps/{uuid}/snapshots/{snapshot_id}/rollback |
Rollback snapshot |
List snapshots
Section titled List snapshotsGET /api/v1/client/vps/{uuid}/snapshots
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 snapshot
Section titled Create snapshotPOST /api/v1/client/vps/{uuid}/snapshots
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 (required)
| Field | Type | Required |
|---|---|---|
name |
string | yes |
description |
string or null | no |
vmstate |
boolean | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Delete snapshot
Section titled Delete snapshotDELETE /api/v1/client/vps/{uuid}/snapshots/{snapshot_id}
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
snapshot_id |
path | integer | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Rollback snapshot
Section titled Rollback snapshotPOST /api/v1/client/vps/{uuid}/snapshots/{snapshot_id}/rollback
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
snapshot_id |
path | integer | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |