Get router
get_routerRetrieve an OpenStack router by ID to inspect status, external gateway, static routes, HA and distributed flags, with project-scoped visibility and not-found handling.
Instructions
Get one router by ID: status, external gateway, static routes, HA and distributed flags.
Use list_router_interfaces for its internal subnets. Returns not_found if the router is not visible to the selected project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"router_id": "<router_id>"
},
"name": "get_router"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| router_id | Yes | Router ID, as returned by list_routers. | |
| project_id | No | Project ID to work in; omit for the default project. Allowed values are listed by get_scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| is_ha | No | ||
| routes | No | ||
| status | No | ||
| project_id | No | ||
| description | No | ||
| is_distributed | No | ||
| is_admin_state_up | No | ||
| external_gateway_info | No |