Description

Detach a volume to the VM.
This API can be executed only when the specific VN is not running.

Request URL

Compute API v2.0

DELETE /v2/​{tenant_id}​/servers/​{server_id}​/os-volume_attachments/​{attachment_id}​

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
tenant_id Tenant ID URI
server_id Server ID URI
attachment_id attachment ID URI

Request Json

This operation does not accept a request body.

Normal response codes

204

Example

curl -i -X DELETE \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/os-volume_attachments/9bcd5857-37d1-4c2f-9f16-6d2f6e3cc115
HTTP/1.1 202 Accepted
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 08:09:05 GMT
Content-Type: application/json
Content-Length: 0
Connection: keep-alive