• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Routers
  6. Remove interface from router

Remove interface from router

Function Description

This interface is used to remove an interface from a router.

Interface Format

Method

URI

Description

PUT

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

Removes an interface from a router.

Restrictions

You are not allowed to remove an interface from a router if the subnet contains load balancer objects.

Request Parameter

Parameter

Type

Mandatory

Description

subnet_id

uuid-str

No

Specifies a subnet ID. Either subnet_id or port_id is used.

Use the gateway IP address of the subnet to create a router interface.

port_id

uuid-str

No

Specifies the port ID. Either subnet_id or port_id is used. Use the port IP address to create a router interface.

Response Parameter

Parameter

Type

Mandatory

Description

subnet_id

uuid-str

Yes

Specifies the subnet ID.

tenant_id

uuid-str

Yes

Specifies the tenant ID.

port_id

uuid-str

Yes

Specifies the port ID.

id

uuid-str

Yes

Specifies the router ID.

Request Example

PUT  /v2.0/routers/b625c58c-0cfe-49e0-acc8-f2374f8187ff/remove_router_interface
{"subnet_id": "4b910a10-0860-428b-b463-d84dbc5e288e"}

Response Example

{
    "subnet_id": "4b910a10-0860-428b-b463-d84dbc5e288e",
    "tenant_id": "3d72597871904daeb6887f75f848b531",
    "port_id": "34d7d063-8f40-4958-b420-096db40d4067",
    "id": "b625c58c-0cfe-49e0-acc8-f2374f8187ff"
}

Error Code

See section Return Code Processing.