v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Volumes

Attach volume

Attach the volume to instance. Note: ultra volume can only be attached to an instance with shared flavor

post/cloud/v2/volumes/{project_id}/{region_id}/{volume_id}/attach

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

volume_idstring uuid4 required

Volume ID

Example:726ecfcc-7fd0-4e30-a86e-7892524aa483

Volume ID

Request body

attachment_tagstring

Block device attachment tag (not exposed in the normal tags).

instance_idstring uuid4 required

Instance ID.

Example request

{
  "attachment_tag": "boot",
  "instance_id": "169942e0-9b53-42df-95ef-1a8b6525c2bd"
}

Response

OK

tasksstring[] required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
idstring required

Example response

{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}