List L2 Vpn Sessions
Get paginated list of all L2VPN sessions
Please use below Policy APIs.
GET /policy/api/v1/infra/tier-0s/<tier-0-id>/l2vpn-services/<service-id>/sessions
GET /policy/api/v1/infra/tier-1s/<tier-1-id>/l2vpn-services/<service-id>/sessions
Opaque cursor to be used for getting next page of records (supplied by current result page)
Comma separated list of fields that should be included in query result
Id of the L2Vpn Service
Maximum number of results to return in this page (server may return fewer)
sort_ascending
Field by which records are sorted
OK
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"cursor": "string",
"result_count": 0,
"sort_ascending": false,
"sort_by": "string",
"results": [
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_create_time": 0,
"_create_user": "string",
"_last_modified_time": 0,
"_last_modified_user": "string",
"_protection": "string",
"_system_owned": false,
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"enabled": false,
"l2vpn_service_id": "string",
"l2vpn_tcp_mss_clamping": {
"direction": "string",
"max_segment_size": 0
},
"transport_tunnels": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"tunnel_encapsulation": {
"local_endpoint_ip": "string",
"peer_endpoint_ip": "string",
"protocol": "string"
}
}
]
}
curl -H 'Authorization: <value>' https://{api_host}/api/v1/vpn/l2vpn/sessions