Volumes and snapshots¶
Block storage volumes and their snapshots.
Paths are relative to your API address. See Authentication and Operations. Changes that answer 202 Accepted return an operation to follow.
Request and response examples are generated from the schema; the tables under Schemas are the reference.
Rename a snapshot¶
PATCH /
Changes the snapshot's name or description. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
resource_id |
path | string | No |
Request body
Delete a snapshot¶
DELETE /
Deletes the snapshot; volumes made from it stay. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
snapshot_id |
path | string | No |
Responses
Create a volume¶
POST /
Creates a volume in one location, empty or from an image or snapshot. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No |
Request body
Rename a volume¶
PATCH /
Changes the volume's name or description. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
resource_id |
path | string | No |
Request body
Set a volume's tags¶
PUT /
Replaces the volume's tags with the whole set given and writes them to it in its location with the nx. prefix, keeping every tag set there without the prefix. Send the tags_version you read in If-Match: a set changed since is 412. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
if-match |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
resource_id |
path | string | No |
Request body
Delete a volume¶
DELETE /
Deletes the volume. Refused while it is attached or has snapshots. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Responses
Extend a volume¶
POST /
Makes the volume larger. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Request body
Change a volume's type¶
POST /
Moves the volume to another volume type from the location's catalog. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Request body
Set whether a volume is bootable¶
POST /
Whether instances may start from the volume. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Request body
Snapshot a volume¶
POST /
Makes a point-in-time copy of the volume. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Request body
Move a volume to another project¶
POST /
Moves the volume to another project of the organization in the same location. Needs the right to delete here and to create there. Accepted at once: follow the returned operation until it finishes.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | N/A | No | Bearer followed by a service account's API key. The console uses your signed-in session instead. |
idempotency-key |
header | string | Yes | ||
org_id |
path | string | No | ||
project_id |
path | string | No | ||
volume_id |
path | string | No |
Request body
Schemas¶
Accepted¶
| Name | Type | Description |
|---|---|---|
operation |
OperationLink |
BootableBody¶
| Name | Type | Description |
|---|---|---|
bootable |
boolean | |
execute_before |
string(date-time) | null |
ExtendBody¶
| Name | Type | Description |
|---|---|---|
execute_before |
string(date-time) | null | |
size_gb |
integer |
HTTPValidationError¶
| Name | Type | Description |
|---|---|---|
detail |
Array<ValidationError> |
OperationLink¶
| Name | Type | Description |
|---|---|---|
href |
string | Where to read the operation; also the Location header. |
id |
string | The operation's ID (op_…). |
state |
string | null | Its state when accepted, normally queued. |
RetypeBody¶
| Name | Type | Description |
|---|---|---|
execute_before |
string(date-time) | null | |
volume_type |
string |
SnapshotBody¶
| Name | Type | Description |
|---|---|---|
display_name |
string | |
execute_before |
string(date-time) | null |
TagsBody¶
| Name | Type | Description |
|---|---|---|
execute_before |
string(date-time) | null | |
tags |
Labels key: value NubeStack Cloud keeps and writes to the resource in its location as `nx. (a volume's metadata key nx.), keeping its other tags. At most 20; a key is 1-32 of a-z, 0-9, _, ., -, starting with a letter; a value is 0-24 of A-Z, a-z, 0-9, _, ., :, -`. An organization uses at most 50 keys. |
TransferBody¶
| Name | Type | Description |
|---|---|---|
execute_before |
string(date-time) | null | |
target_project_id |
string |
UpdateBody¶
| Name | Type | Description |
|---|---|---|
description |
string | null | |
display_name |
string | |
execute_before |
string(date-time) | null |
ValidationError¶
| Name | Type | Description |
|---|---|---|
ctx |
||
input |
||
loc |
Array<> | |
msg |
string | |
type |
string |
VolumeCreateBody¶
| Name | Type | Description |
|---|---|---|
display_name |
string | |
execute_before |
string(date-time) | null | |
image |
string | null | |
image_id |
string | null | |
image_version |
string | null | |
location |
string | |
size_gb |
integer | |
snapshot_id |
string | null | |
tags |
Labels key: value NubeStack Cloud keeps and writes to the resource in its location as `nx. (a volume's metadata key nx.), keeping its other tags. At most 20; a key is 1-32 of a-z, 0-9, _, ., -, starting with a letter; a value is 0-24 of A-Z, a-z, 0-9, _, ., :, -`. An organization uses at most 50 keys. |
|
volume_type |
string |