Routers API reference¶
See https://docs.openstack.org/api-ref/network/.
In these methods, {router_id} is the ID of the router, "router_name" is the name of the router, "external_network_id" is the ID of the external network to be used as the router's gateway, "subnet_id" is the ID of the subnet to be added as an interface to the router, and "port_id" is the ID of the port to be added as an interface to the router. These methods allow you to list existing routers, show details of a specific router, create a new router, update an existing router, delete a router, add or remove interfaces to or from a router, and set or clear the external gateway for a router in the Network service.
List routers¶
Show router details¶
Create a router¶
Request body
{
 "router": {
   "name": "router_name",
   "admin_state_up": true,
   "external_gateway_info": {
     "network_id": "external_network_id"
   }
 }
}
Update a router¶
Request body
Delete a router¶
Add interface to router¶
Request body (using a subnet ID)
Request body (using a port ID)
Remove interface from router¶
Request body (using a subnet ID)
Request body (using a port ID)
External gateway for router¶
Request body
Clear external gateway from router¶
Request Body: