list_ipsec_tunnels
Lists IPsec VPN tunnel status, remote gateways, phase-2 selectors, and traffic counters for a FortiGate device, including connected dial-up client counts.
Instructions
List IPsec VPN tunnels with status, remote gateway, phase-2 selectors and traffic counters.
Dial-up tunnels show the number of connected clients instead of a gateway.
Parameters:
device_id: Identifier of the FortiGate device
vdom: Virtual Domain name (optional)
Returns:
One block per tunnel: state (UP/PARTIAL/DOWN/dialup), gateway, bytes in/out, phase-2 entries
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>"
},
"name": "list_ipsec_tunnels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |