List configured static routes
list_static_routesList manually configured static routes on a FortiGate. Use this to audit operator-defined routes; for actual forwarding paths use get_routing_table instead.
Instructions
List configured static routes.
These are the routes an operator configured, which is not the same as the routes in use. A DHCP-assigned default route never appears here because it was never configured. Use get_routing_table for what the appliance is actually forwarding on.
A route whose destination is a named address object is resolved to the underlying CIDR where possible, with the object name kept alongside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual domain to read. Defaults to the one configured for this target. Routes are per-vdom, so this changes the answer on a multi-VDOM appliance. The `vdom` field names the one actually read. | |
| limit | No | Maximum rows to return. Defaults to 200, capped at 1000. | |
| offset | No | Index to start from, for paging through a large table. | |
| target | No | Which FortiGate to query. Optional when only one is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||