Get network VPN peer history
get_network_vpn_peer_historyRead a VPN peer’s traffic and connection history over 24h, 7d, 30d, or 13m ranges, returning oldest points first with rx/tx bytes and connection 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.
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 |