Add interface to router (Create connection interface)

Adds an internal interface to a logical router.

Specify a port on the network of a project that is different to the logical router within the same domain, and create the connection interface.

URI

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

Description of the URI:

{router_id} UUID The UUID of the router.

HTTP method

PUT

Request parameter

Key Description Type Required/optional
port_id The port ID. csapi:UUID MUST

Example request


{
   "port_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
forbidden (403) Error response codes
itemNotFound (404) Error response codes
conflict (409) Error response codes

Response body (normal status)


{
    "subnet_id": "a2f1f29d-571b-4533-907f-5803ab96ead1",
    "port_id": " 1accb5ac-b258-483e-af3a-f41f6df8190c",
    "tenant_id": " e10f4ade5a7649c49e1a6817196516ad",
    "id": "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e",
    "availability_zone": "AZ1"
}
     

Description of response body (normal status)

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

Notes

If a port on the network of the same project as the logical router is specified, an error will occur. (response code: 400)

If a logical router outside the domain to which the user belongs is specified, an error will occur. (response code: 403)

If a port on a network outside the domain to which the user belongs is specified, an error will occur. (response code: 404)