Skip to main content
PATCH
Python

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234_abcdef

Path Parameters

project_id
integer
required

Project ID

Example:

1

region_id
integer
required

Region ID

Example:

1

volume_id
string<uuid4>
required

Volume ID

Example:

"726ecfcc-7fd0-4e30-a86e-7892524aa483"

Body

application/json
name
string

Name

Pattern: ^[a-zA-Z0-9][a-zA-Z 0-9._\-]{1,61}[a-zA-Z0-9._]$
Example:

"some_name"

tags
UpdateTagsSerializer · object | null

Update key-value tags using JSON Merge Patch semantics (RFC 7396). Provide key-value pairs to add or update tags. Set tag values to null to remove tags. Unspecified tags remain unchanged. Read-only tags are always preserved and cannot be modified.

Examples:

  • Add/update tags: {'tags': {'environment': 'production', 'team': 'backend'}} adds new tags or updates existing ones.
  • Delete tags: {'tags': {'old_tag': null}} removes specific tags.
  • Remove all tags: {'tags': null} removes all user-managed tags (read-only tags are preserved).
  • Partial update: {'tags': {'environment': 'staging'}} only updates specified tags.
  • Mixed operations: {'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}} adds/updates 'environment' and 'cost_center' while removing 'deprecated_tag', preserving other existing tags.
  • Replace all: first delete existing tags with null values, then add new ones in the same request.
Example:

Response

OK

attachments
VolumeAttachmentSerializer · object[]
required

List of attachments associated with the volume.

bootable
boolean
required

Indicates whether the volume is bootable.

Example:

false

created_at
string<date-time>
required

The date and time when the volume was created.

Example:

"2019-05-29T05:32:41+0000"

creator_task_id
string | null
required

The ID of the task that created this volume. The value is null if the volume was not created by a task.

Example:

"d74c2bb9-cea7-4b23-a009-2f13518ae66d"

id
string
required

The unique identifier of the volume.

Example:

"726ecfcc-7fd0-4e30-a86e-7892524aa483"

is_root_volume
boolean
required

Indicates whether this is a root volume.

Example:

false

limiter_stats
VolumeLimiterStatsSerializer · object | null
required

Quality of Service (QoS) parameters for this volume. The value is null if the volume type has no QoS profile.

name
string
required

The name of the volume.

Example:

"volume-1"

project_id
integer
required

Project ID.

Example:

1

region
string
required

The region where the volume is located.

Example:

"Luxembourg"

region_id
integer
required

The identifier of the region.

Example:

1

size
integer
required

The size of the volume in gibibytes (GiB).

Example:

50

snapshot_ids
string[] | null
required

List of snapshot IDs associated with this volume. The value is null if the list did not load the snapshots.

status
enum<string>
required

The current status of the volume.

Available options:
attaching,
available,
awaiting-transfer,
backing-up,
creating,
deleting,
detaching,
downloading,
error,
error_backing-up,
error_deleting,
error_extending,
error_restoring,
extending,
in-use,
maintenance,
reserved,
restoring-backup,
retyping,
reverting,
uploading
Example:

"available"

tags
TagSerializer · object[]
required

List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.

Example:
task_id
string | null
required

The UUID of the active task that currently holds a lock on the resource. This lock prevents concurrent modifications to ensure consistency. If null, the resource is not locked.

updated_at
string<date-time> | null
required

The date and time when the volume was last updated. The value is null if the volume never changed.

Example:

"2019-05-29T05:39:20+0000"

volume_image_metadata
Volume Image Metadata · object | null
required

Image metadata for volumes created from an image. The value is null if the volume did not come from an image.

Example:
volume_type
string
required

The type of volume storage.

Example:

"standard"