Management Plane API > Networking > VPN > IPSEC > Peer Endpoints

Create custom local endpoint

Create custom IPSec local endpoint.

Request:

Method:
POST
URI Path(s):
/api/v1/vpn/ipsec/local-endpoints
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IPSecVPNLocalEndpoint+

Example Request:

POST https://<nsx-mgr>/api/v1/vpn/ipsec/local-endpoints { "resource_type": "IPSecVPNLocalEndpoint", "description": "Local endpoint plr1", "display_name": "Local endpoint plr1", "local_id": "40.40.40.1", "ipsec_vpn_service_id": { "target_id": "f770a847-a6c9-4bc0-94cb-1dd1d5ae622a" }, "local_address": "40.40.40.1", "trust_ca_ids": [], "trust_crl_ids": [] }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
IPSecVPNLocalEndpoint+

Example Response:

{ "resource_type" : "IPSecVPNLocalEndpoint", "description" : "Local endpoint plr1", "id" : "c99d8ed0-195b-46b0-8474-664b55cfb176", "display_name" : "Local endpoint plr1", "local_id" : "40.40.40.1", "ipsec_vpn_service_id" : { "target_display_name" : "IPSec VPN serviceplr1", "is_valid" : true, "target_type" : "IPSecVPNService", "target_id" : "f770a847-a6c9-4bc0-94cb-1dd1d5ae622a" }, "local_address" : "40.40.40.1", "trust_ca_ids" : [ ], "trust_crl_ids" : [ ], "_create_time" : 1517293221251, "_last_modified_user" : "admin", "_last_modified_time" : 1517293221251, "_system_owned" : false, "_create_user" : "admin", "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

crud

Feature:

vpn

Additional Errors: