Remove interface from router

Removes an internal interface from a logical router.

URI

/v2.0/routers/{router_id}/remove_router_interface

Description of the URI:

{router_id} UUID The UUID of the router.

HTTP method

PUT

Request parameter

Key Description Type Required/optional
subnet_id The subnet ID csapi:UUID Optional
port_id The port ID csapi:UUID Optional

CAUTION:

You must specify either subnet_id or port_id

Example request


{
    "subnet_id": "a2f1f29d-571b-4533-907f-5803ab96ead1"
}
     

Response status

Status code Description
200 Normal response codes
badRequest (400) Error response codes
unauthorized (401) Error response codes
itemNotFound (404) Error response codes
conflict (409) Error response codes

Response body (normal status)


{
    "id": "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e",
    "tenant_id": "2f245a7b-796b-4f26-9cf9-9e82d248fda7",
    "port_id": "3a44f4e5-1694-493a-a1fb-393881c673a4",
    "subnet_id": "a2f1f29d-571b-4533-907f-5803ab96ead1",
    "availability_zone": "AZ1"
}
     

Description of response body (normal status)

Item Description
id The router ID
tenant_id The project ID
port_id The port ID
subnet_id The subnet ID
availability_zone The Availability Zone name