v1

latestSwagger 2.02026-08-04232286653.5 KB
Disks

Resizes a disk in the project and returns the async operation.

Size should be in gibibytes (GiB) or tebibytes (TiB) in the format [Size][Unit]. E.g. 10GiB A successful response from this resource will contain the async operation.

patch/projects/{project_id}/storage/disks/{disk_id}

Path parameters

project_idstring required

ID of the project that owns the disk.

disk_idstring required

ID of the disk.

Request body

sizestring required

New storage capacity for the disk, given as a size and unit in the format [Size][Unit], for example 100GiB or 1TiB.

Example request

{
  "size": "10GiB"
}

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"
  }
}