Attachments
Volume attachment management
Lists all volume attachments
OpenStack authentication token
Requests a page size of items
The ID of the last-seen item
Comma-separated list of sort keys and optional sort directions
Filter by instance ID
Filter by volume ID
Filter by attachment status
Filter by attach status
OK
GET /v3/v3/attachments HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"attachments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"instance": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"attach_mode": "text",
"attached_at": "2025-11-28T20:26:54.355Z",
"detached_at": "2025-11-28T20:26:54.355Z",
"connector": {},
"connection_info": {}
}
]
}Creates a volume attachment
OpenStack authentication token
OK
POST /v3/v3/attachments HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"attachment": {
"volume_uuid": "123e4567-e89b-12d3-a456-426614174000",
"instance_uuid": "123e4567-e89b-12d3-a456-426614174000",
"connector": {},
"mode": "rw"
}
}OK
{
"attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"instance": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"attach_mode": "text",
"attached_at": "2025-11-28T20:26:54.355Z",
"detached_at": "2025-11-28T20:26:54.355Z",
"connector": {},
"connection_info": {}
}
}Shows details for an attachment
OpenStack authentication token
The UUID of the attachment
OK
GET /v3/v3/attachments/{attachment_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"instance": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"attach_mode": "text",
"attached_at": "2025-11-28T20:26:54.355Z",
"detached_at": "2025-11-28T20:26:54.355Z",
"connector": {},
"connection_info": {}
}
}Updates an attachment
OpenStack authentication token
The UUID of the attachment
OK
PUT /v3/v3/attachments/{attachment_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"attachment": {
"connector": {}
}
}OK
{
"attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"instance": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"attach_mode": "text",
"attached_at": "2025-11-28T20:26:54.355Z",
"detached_at": "2025-11-28T20:26:54.355Z",
"connector": {},
"connection_info": {}
}
}Deletes an attachment
OpenStack authentication token
The UUID of the attachment
OK
DELETE /v3/v3/attachments/{attachment_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"attachment_ids": [
"text"
]
}Mark a volume attachment process as completed (in-use)
OpenStack authentication token
The UUID of the attachment
No Content
POST /v3/v3/attachments/{attachment_id}/action HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"os-complete": {}
}No Content
No content
Last updated
Was this helpful?
