create_static_route
Add a static route to a FortiGate firewall by specifying the destination, gateway, and outgoing interface; optional VDOM, distance, and comment are supported.
Instructions
Add a static route. FortiGate-VM evaluation licenses allow only 3 routes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | Destination in CIDR (10.1.0.0/16) or 'ip mask' form; 0.0.0.0/0 for default | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| device | Yes | Outgoing interface, e.g. port1 | |
| comment | No | Comment | |
| gateway | No | Next-hop IP | |
| distance | No | Administrative distance (default 10) |