NSX Autonomous Edge REST API

Fetch IPSec VPN session with PSK

Fetch IPSec VPN session with PSK.

Request:

Method:
GET
URI Path(s):
/vpn/ipsec/sessions/{ipsec-vpn-session-id}?action=show-sensitive-data
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Successful Response:

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

Example Response:

{ "display_name": "PBS 12", "enabled": true, "id": "df90e18a-08cc-418a-8c0f-259d9531c207", "local_endpoint": { "local_address": "2.2.2.2", "local_id": "2.2.2.2" }, "authentication_mode": "PSK", "connection_initiation_mode": "ON_DEMAND", "peer_address": "4.4.4.1", "peer_id": "4.4.4.1", "psk": "TESTPSK", "policy_rules": [ { "action": "PROTECT", "destinations": [ { "subnet": "2.1.4.0/24" } ], "id": "1026", "sources": [ { "subnet": "1.1.2.0/24" } ] } ], "resource_type": "PolicyBasedIPSecVPNSession" }

Required Permissions:

read

Feature:

vpn

Additional Errors: