NSX Autonomous Edge REST API

Get IPSec VPN session list result

Get paginated list of all IPSec VPN sessions.

Request:

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

Example Request:

GET https://<ip>/api/v1/vpn/ipsec/sessions

Successful Response:

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

Example Response:

{ "_schema": "IPSecVPNSessionListResult", "_self": { "href": "/api/v1/vpn/ipsec/sessions", "rel": "self" }, "result_count": 2, "results": [ { "authentication_mode": "CERTIFICATE", "connection_initiation_mode": "INITIATOR", "description": "System created IPSec session for L2VPN", "display_name": "L2VPN session for network extension - a598e3ed-ea8d-4f2b-96da-73d27bc53849 - System created IPSec Session 0", "dpd_profile_id": "79c50680-a5ea-4be7-b171-3a8cb9ce8744", "enabled": true, "id": "560dfbdd-790d-4c96-beee-809326ce68e0", "ike_profile_id": "65ec4cbe-a277-4a68-903a-a697f97eef30", "ipsec_tunnel_profile_id": "efac9208-5b2d-4ca8-b6e4-c639235064fa", "local_endpoint": { "certificate_id": "441546d1-ff8f-4e0b-b430-87cbc5bd1719", "local_address": "20.20.20.1", "local_id": "20.20.20.1", "trust_ca_ids": [ "e1520b75-bf50-4bff-87f8-4e2b38d4f101" ] }, "peer_address": "40.40.40.1", "peer_id": "C = IN, ST = Karnataka, O = VCF, OU = BCM, CN = right", "resource_type": "RouteBasedIPSecVPNSession", "tunnel_ports": [ { "ip_subnets": [ { "ip_addresses": [ "192.168.50.1" ], "prefix_length": 31 } ], "tunnel_port_id": "2bcc645f-c368-483b-8200-a8d4baefb122" } ] }, { "authentication_mode": "PSK", "connection_initiation_mode": "INITIATOR", "display_name": "RBVPN", "dpd_profile_id": "79c50680-a5ea-4be7-b171-3a8cb9ce8744", "enabled": true, "id": "5fca44f6-f946-4ce0-a9aa-f937849bdf0c", "ike_profile_id": "8e12d370-1a37-4816-b757-341aa644d5bd", "ipsec_tunnel_profile_id": "b87041c2-b615-47d3-ba2b-7ba0f71eb3aa", "local_endpoint": { "local_address": "20.20.20.2", "local_id": "20.20.20.2" }, "peer_address": "40.40.40.2", "peer_id": "40.40.40.2", "resource_type": "RouteBasedIPSecVPNSession", "tunnel_ports": [ { "ip_subnets": [ { "ip_addresses": [ "192.168.60.1" ], "prefix_length": 31 } ], "tunnel_port_id": "fb918eb1-7d5e-4bf1-b897-2183e435c2f4" } ] } ] }

Required Permissions:

read

Feature:

vpn

Additional Errors: