Delete Virtual Router
DELETE /v2.0/routers/{router_id}
Deletes a logical router and, if present, its external gateway interface.
This operation fails if the router has attached internal interfaces. First list the router interfaces and delete them, then delete the router.
info
Source: delete-router
Request
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| router_id | path | string | The ID of the router. |
Sample Request
Using curl
curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9696/v2.0/routers/66fa6a3b-4b3a-485f-819d-c671765eb915
Using HTTP request
DELETE https://api.vietnix.cloud:9696/v2.0/routers/{router_id}
X-Auth-Token: gAAAAA<...>
Response
This operation returns no response body.
Status Codes
Success
| Status Code | Description |
|---|---|
| 204 - No Content | The server has fulfilled the request. |
Error
| Status Code | Description |
|---|---|
| 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 a request precondition. |