Management Plane API > Networking > VPN > Statistics > L2VPN Sessions Summary

Get status summary of all existing L2VPN sessions.

Load all the existing L2VPN sessions and return the status summary of all L2VPN sessions. Query parameter source supports only cached mode.

Request:

Method:
GET
URI Path(s):
/api/v1/vpn/l2vpn/sessions/summary
Request Headers:
n/a
Query Parameters:
DataSourceParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/vpn/l2vpn/sessions/summary?source=cached

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
L2VPNSessionSummary+

Example Response:

{ "total_l2vpn_sessions": 1, "failed_l2vpn_sessions": 0, "established_l2vpn_sessions": 1 }

Required Permissions:

read

Feature:

vpn

Additional Errors: