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



curl -i -X DELETE \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
HTTP/1.1 202 Accepted
Server: openresty/
Date: Fri, 08 May 2015 08:09:05 GMT
Content-Type: application/json
Content-Length: 0
Connection: keep-alive