13.8. Detaching network interfaces from virtual machines¶
DELETE /servers/{server_id}/os-interface/{port_id}
Detach a network interface from the given virtual machine.
Source: https://docs.openstack.org/api-ref/compute/?expanded=detach-interface-detail
13.8.1. Request¶
Name | In | Type | Description |
---|---|---|---|
server_id |
path | string | The UUID of the server. |
port_id |
body | string | The port ID. |
13.8.1.1. Examples¶
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<...>' \
https://<node_IP_addr>:8774/v2.1/b906404c55bb44729da99987536ac5bc/servers/0785ee80-1eca-426b-b8c4-5b499fc7f614/os-interface/bfc3228d-384e-4864-a583-54157225a4ef
13.8.2. Response¶
13.8.2.1. Status codes¶
13.8.2.1.1. Success¶
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. |
13.8.2.1.2. Error¶
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. |
Version 5.0.0 — Feb 01, 2022