Management Plane API > Networking > VPN > IPSEC > Sessions

Get IPSec VPN session list result

Get paginated list of all IPSec VPN sessions.

Request:

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

Example Request:

GET https://<nsx-mgr>/api/v1/vpn/ipsec/sessions

Successful Response:

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

Example Response:

{ "result_count": 1, "results": [ { "resource_type": "PolicyBasedIPSecVPNSession", "id": "ee4f7777-f837-4dbb-9a03-eeb9beb52b09", "display_name": "PBS 12", "ipsec_vpn_service_id": "f770a847-a6c9-4bc0-94cb-1dd1d5ae622a", "peer_endpoint_id": "f0cb1b37-d618-4406-94eb-b4099418a165", "local_endpoint_id": "c99d8ed0-195b-46b0-8474-664b55cfb176", "enabled": true, "policy_rules": [ { "id": "1026", "sources": [ { "subnet": "1.1.1.0/24" } ], "logged": true, "destinations": [ { "subnet": "2.1.4.0/24" } ], "action": "PROTECT", "enabled": true, "_revision": 0 } ], "_create_time": 1517293798690, "_last_modified_user": "admin", "_last_modified_time": 1517293798690, "_system_owned": false, "_create_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

vpn

Additional Errors: