Detaching network interfaces from virtual machines

DELETE /servers/{server_id}/os-interface/{port_id}

Detach a network interface from the given virtual machine.




Name In Type Description
server_id path string The UUID of the server.
port_id path string The port ID.


Detach a network interface with the specified ID from a VM with the specified ID.

# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-OpenStack-Nova-API-Version: 2.67' -H 'X-Auth-Token: gAAAAA<...>' \


Status codes


Code Reason
202 - Accepted

Request was accepted for processing, but the processing has not been completed. A ‘location’ header is included in the response which contains a link to check the progress of the request.


Code Reason
401 - Unauthorized

User must authenticate before making a request.

403 - Forbidden

Policy does not allow current user to do this operation.

404 - Not Found

The requested resource could not be found.

409 - Conflict

This operation conflicted with another operation on this resource.

501 - Not Implemented

The server either does not recognize the request method, or it lacks the ability to fulfill the request.