Get L2VPN Session Statistics
Get statistics of a L2VPN session. Query parameter source=realtime is the only supported source.
Please use below Policy APIs.
GET /policy/api/v1/infra/tier-0s/<tier-0-id>/l2vpn-services/<service-id>/sessions/<session-id>/statistics
GET /policy/api/v1/infra/tier-1s/<tier-1-id>/l2vpn-services/<service-id>/sessions/<session-id>/statistics
session-id
Data source type.
OK
{
"display_name": "string",
"partial_stats": false,
"session_id": "string",
"tap_traffic_counters": [
{
"bytes_in": 0,
"bytes_out": 0,
"packets_in": 0,
"packets_out": 0,
"packets_receive_error": 0,
"packets_sent_error": 0
}
],
"traffic_statistics_per_logical_switch": [
{
"bum_bytes_in": 0,
"bum_bytes_out": 0,
"bum_packets_in": 0,
"bum_packets_out": 0,
"bytes_in": 0,
"bytes_out": 0,
"logical_switch": {
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
},
"packets_in": 0,
"packets_out": 0,
"packets_receive_error": 0,
"packets_sent_error": 0
}
]
}
L2VPN display name.
Partial statistics is set to true if onle active node responds while standby does not. In case of both nodes responded statistics will be summed and partial stats will be false. If cluster has only active node, partial statistics will always be false.
Session identifier for L2VPN.
Tunnel port traffic counters.
Traffic statistics per logical switch.
curl -H 'Authorization: <value>' https://{api_host}/api/v1/vpn/l2vpn/sessions/{session-id}/statistics