Management Plane API > Networking > VPN > IPSEC > Services

Create VPN service

Create VPN service for given logical router.

Request:

Method:
POST
URI Path(s):
/api/v1/vpn/ipsec/services
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IPSecVPNService+

Example Request:

POST https://<nsx-mgr>/api/v1/vpn/ipsec/services { "resource_type": "IPSecVPNService", "description": "Manage VPN serviceplr1", "display_name": "IPSec VPN serviceplr1", "logical_router_id": "518cc148-75ce-4973-9a79-07da0b8b2147", "ike_log_level": "ERROR", "enabled": true }

Successful Response:

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

Example Response:

{ "resource_type" : "IPSecVPNService", "description" : "Manage VPN serviceplr1", "id" : "f770a847-a6c9-4bc0-94cb-1dd1d5ae622a", "display_name" : "IPSec VPN serviceplr1", "logical_router_id" : "518cc148-75ce-4973-9a79-07da0b8b2147", "ike_log_level" : "ERROR", "enabled" : true, "_create_time" : 1517293097281, "_last_modified_user" : "admin", "_last_modified_time" : 1517293097281, "_system_owned" : false, "_create_user" : "admin", "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

crud

Feature:

vpn

Additional Errors: