List VLANs
list_vlansList VLAN sub-interfaces with tags and parent interfaces, excluding quarantine VLANs. Get a focused view of VLAN configurations for firewall management.
Instructions
List VLAN sub-interfaces with their tags and parent interfaces.
A focused view of the VLAN subset of the interface table, since what
VLANs exist and what they attach to is asked far more often than the full
interface list. FortiOS quarantine VLANs are excluded, and filtered_out
says how many that was.
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 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 | |||