List interfaces
list_interfacesList FortiGate interfaces with addresses, VLAN tags, and link state, hiding generated internal ones unless included. Filter by IP, type, or VDOM.
Instructions
List interfaces with their addresses, VLAN tags, and link state.
FortiOS creates bookkeeping interfaces alongside real ones, such as the
quarantine interface that accompanies every wireless VAP. Those are
hidden by default and named in hidden_internal so the omission is
visible.
Which ones count as bookkeeping is decided by the appliance rather than
by the name. FortiOS reports whether each interface is offered as a
policy endpoint, and anything it offers is shown regardless of what it
is called, so this tool cannot hide an interface a policy could name.
hidden_internal_basis says whether that lookup succeeded; when it did
not, the fallback is the name and the omission is less trustworthy.
Filters narrow the list silently unless you read filtered_out, which
names each active filter and how many rows it removed. with_ip_only
keeps interfaces carrying an IPv4 address in the configuration, which
includes a DHCP interface that has taken a lease, because FortiOS writes
the leased address back into the config.
An interface that holds no address reports addressing instead of ip.
Use get_routing_table for the runtime view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual domain to read. Defaults to the one configured for this target. The `vdom` field in the response names the one actually read. | |
| limit | No | Maximum interfaces 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. | |
| with_ip_only | No | Keep only interfaces carrying an IPv4 address in the configuration. | |
| interface_type | No | Exact FortiOS type filter, such as physical, vlan, aggregate, hard-switch, switch, or tunnel. Not a substring match. | |
| include_internal | No | Include FortiOS-generated interfaces, meaning those the appliance does not offer as policy endpoints and whose names carry a generated prefix such as wqtn., vap., ssl., or naf. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||