Get network VPN peer history
get_network_vpn_peer_historyRetrieve one VPN peer's traffic and connection history for 24h, 7d, 30d, or 13m ranges, with rx/tx bytes and per-step connectivity status.
Instructions
Read one device's or site's traffic and connection history, oldest point first: range 24h = raw 30-second samples (kept 24 h), 7d = 10-minute points and 30d = hourly points (from per-minute rows kept 30 days), 13m = daily UTC points (from hourly rows kept 13 months). rx = bytes the VPN received from the peer, tx = bytes sent to it. For WireGuard, connected means a handshake at most 180 s old in the step. For IPsec, connected means the SA was up at the sample; its CHILD-SA rekey timestamp is not the WireGuard liveness timer. A period the VPN did not observe has no point (unknown, never 0). The endpoint IP is live only on get_network_vpn_gateway and never part of the history. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.
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": {
"gateway_id": "<gateway_id>",
"peer_id": "<peer_id>",
"range": "<range>"
},
"name": "get_network_vpn_peer_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| peer_id | Yes | Exact lowercase UUID returned by an owned networking resource | |
| gateway_id | Yes | Exact lowercase UUID returned by an owned networking resource |