v1

latestSwagger 2.02026-08-04232286653.5 KB
Snapshots

Creates a disk snapshot in the project and returns the async operation.

A successful response from this resource will contain the async operation.

post/projects/{project_id}/storage/snapshots

Path parameters

project_idstring required

Request body

disk_idstring required

ID of the disk to snapshot.

namestring required

Name for the new disk snapshot.

Example request

{
  "disk_id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "my-snapshot-1"
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}