Named snapshots and automatic checkpoints: list, create, restore and delete them.
Named snapshots and automatic checkpoints: list, create, restore and delete them.
Create a named snapshot
POST /v1/instances/{name}/snapshots
Takes a named snapshot of the Kiste's disk now. Named snapshots are kept until you delete them, also after the Kiste is deleted, and are copied off-site like automatic checkpoints.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | The Kiste's name. |
Request body: CreateSnapshotRequest
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes |
Responses:
200OK. Body: SnapshotResponse
Errors use the error envelope.
List a Kiste's snapshots
GET /v1/instances/{name}/snapshots
The named snapshots and automatic checkpoints of one Kiste, newest first, with their off-site state.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | The Kiste's name. |
Responses:
200OK. Body: list of SnapshotResponse
Errors use the error envelope.
List snapshots
GET /v1/snapshots
Every snapshot and checkpoint of your account.
Responses:
200OK. Body: list of SnapshotResponse
Errors use the error envelope.
Get a snapshot
GET /v1/snapshots/{id}
One snapshot: size, how it was taken (consistency), whether a local copy is present and its off-site state (remote).
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Responses:
200OK. Body: SnapshotResponse
Errors use the error envelope.
Delete a snapshot
DELETE /v1/snapshots/{id}
Deletes a snapshot and frees its space.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Responses:
200OK. Body: MessageResponse
Errors use the error envelope.
Restore a snapshot
POST /v1/snapshots/{id}/restore
Creates a new, independent Kiste with the given name from a snapshot. The source Kiste, if it still exists, is not touched. When only the off-site copy exists the Kiste starts right away and fetches its disk in the background; from_offsite forces that path, which proves the off-site copy restores.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Request body: RestoreSnapshotRequest
| Field | Type | Required | Description |
|---|---|---|---|
from_offsite | boolean | no | Restore from the off-site copy even where the local copy exists: proves the off-site copy restores (it boots lazily from it). |
name | string | yes |
Responses:
200OK. Body: InstanceResponse
Errors use the error envelope.
Get the newest snapshot
GET /v1/snapshots/latest
The newest ready snapshot of a Kiste (instance) or of a snapshot lineage (lineage_id).
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
instance | string | no | Kiste name. |
lineage_id | string | no | Lineage of snapshots that share an origin. |
Responses:
200OK. Body: SnapshotResponse
Errors use the error envelope.
Get the snapshot lineage
GET /v1/snapshots/tree
The ordered lineage of snapshots of a Kiste or lineage: which snapshot was taken from which.
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
instance | string | no | Kiste name. |
lineage_id | string | no | Lineage of snapshots that share an origin. |
Responses:
200OK. Body: SnapshotTreeResponse
Errors use the error envelope.
Get off-site restore details
GET /v1/snapshots/{id}/pull
Whether a snapshot can be restored from its off-site copy, and its stored size there.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Responses:
200OK. Body: SnapshotPullResponse
Errors use the error envelope.