9.6. Deleting virtual networks¶
DELETE /v2.0/networks/{network_id}
Delete a network with the specified ID and its associated resources.
Source: https://docs.openstack.org/api-ref/network/v2/index.html#delete-network
9.6.1. Request¶
Name | In | Type | Description |
---|---|---|---|
network_id |
path | string | The ID of the network. |
9.6.1.1. Example¶
# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9696/v2.0/networks/ee3c3486-2ccc-457a-9b66-b974e164f358
9.6.2. Response¶
9.6.2.1. Status codes¶
Normal response codes: 204
Error response codes: 401, 404, 409, 412
9.6.2.1.1. Success¶
Code | Reason |
---|---|
204 - No Content |
The server has fulfilled the request. |
9.6.2.1.2. Error¶
Code | Reason |
---|---|
401 - Unauthorized |
User must authenticate before making a request. |
404 - Not Found |
The requested resource could not be found. |
409 - Conflict |
This operation conflicted with another operation on this resource. |
412 - Precondition Failed |
The server does not meet one of the preconditions that the requester put on the request header fields. |
Version 4.0.0 — Sep 29, 2020