Snapshots

snapshots

Methods

Create Snapshot -> { tasks }
post/v1/snapshots/{project_id}/{region_id}

Create snapshot

Delete Snapshot -> { tasks }
delete/v1/snapshots/{project_id}/{region_id}/{pk}

Delete snapshot

List Snapshots -> OffsetPage<>
get/v1/snapshots/{project_id}/{region_id}

List snapshots

Parameters
project_id: number
region_id: number
instance_id: string
Optional

Can be used to list snapshots of any volume in a specific server instance

lifecycle_policy_id: number
Optional

Can be used to list snapshots by lifecycle policy id

limit: number
Optional

Limit the number of returned snapshots

offset: number
Optional

Offset value is used to exclude the first set of records from the result

schedule_id: string
Optional

Can be used to list snapshots by schedule id

volume_id: string
Optional

Can be used to list snapshots of a single volume

Response fields
count: number
Optional

Number of objects

results: Array<>
Optional

Objects

Request example
200Example
Get Snapshot ->
get/v1/snapshots/{project_id}/{region_id}/{pk}

Get snapshot

Replace Snapshot Metadata ->
put/v1/snapshots/{project_id}/{region_id}/{pk}/metadata

All existing metadata is deleted and replaced with the metadata from the request. To remove metadata key send body without this key.

Domain types

Snapshot = { id, created_at, creator_task_id, 11 more... }

Snapshot object