cmdb_list
Lists objects from any FortiOS CMDB table as a fallback for tables without dedicated tools. Use filters, pagination, or field selection to narrow large or sensitive responses.
Instructions
List every object of any FortiOS configuration table (GET /api/v2/cmdb/{path}).
The escape hatch for tables that have no dedicated tool. Examples of path: "firewall/policy", "system/interface", "vpn.ipsec/phase1-interface", "router/static", "user/local", "wireless-controller/vap", "system/sdwan". Secret-looking fields (passwords, PSKs, keys) are redacted; large responses are truncated, so narrow them with filter_expr, count or format_fields.
Parameters:
device_id: Identifier of the FortiGate device
path: cmdb table path without the /api/v2/cmdb/ prefix
filter_expr: Optional FortiOS filter, e.g. "status==enable" or "name=@vlan" ("&" joins several)
start, count: Optional pagination
format_fields: Optional "|"-separated field list to return, e.g. "policyid|name|action"
vdom: Virtual Domain name (optional)
Returns:
The raw JSON response (results plus metadata)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | cmdb table path, e.g. firewall/policy | |
| vdom | No | Virtual Domain | |
| count | No | Maximum objects to return | |
| start | No | Pagination offset | |
| device_id | Yes | FortiGate device identifier | |
| filter_expr | No | FortiOS filter expression(s), '&'-joined | |
| format_fields | No | '|'-separated fields to return |