list_sessions
Retrieve current FortiGate firewall sessions, optionally filtered by source, destination, port, or policy, with matched and total counts for traffic analysis.
Instructions
Current sessions through the firewall, optionally filtered, with the matched and total session counts. Sessions to the FortiGate itself (admin GUI/API) may be counted but not listed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| count | No | Maximum sessions to return (default 50) | |
| dstaddr | No | Filter by destination IP | |
| dstport | No | Filter by destination port | |
| srcaddr | No | Filter by source IP | |
| policyid | No | Filter by policy ID | |
| resolve_vms | No | Label IPs/MACs with the Proxmox VM that owns them (needs PROXMOX_*) |