When you detach, the specified port will be deleted automatically.

Detaching the port at external network is not allowed.

The VM should not be running when being attached.

Request URL

Compute API v2.0

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

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
tenant_id URI
server_id URI
attachment_id interface ID URI Specify port_id

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 204 No Content
Date: Wed, 10 Dec 2014 06:57:20 GMT
Server: Apache
Content-Length: 0
Content-Type: application/json