Management Plane API > Networking > VPN > IPSEC > Tunnel Profiles

Create custom IPSec tunnel profile

Create custom IPSec tunnel profile. IPSec tunnel profile is a reusable profile that captures phase two negotiation parameters and tunnel properties. System will be provisioned with system owned non editable default IPSec tunnel profile. Any change in profile affects all sessions consuming this profile.

Request:

Method:
POST
URI Path(s):
/api/v1/vpn/ipsec/tunnel-profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IPSecVPNTunnelProfile+

Example Request:

POST https://<nsx-mgr>/api/v1/vpn/ipsec/tunnel-profiles { "resource_type" : "IPSecVPNTunnelProfile", "display_name" : "nsx-default-tunnel-profile", "enable_perfect_forward_secrecy" : true, "encryption_algorithms" : [ "AES_128" ], "digest_algorithms" : [ "SHA2_256" ], "sa_life_time" : 3600, "dh_groups" : [ "GROUP14" ], "encapsulation_mode" : "TUNNEL_MODE", "transform_protocol" : "ESP", "df_policy" : "COPY" }

Successful Response:

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

Example Response:

{ "resource_type" : "IPSecVPNTunnelProfile", "id" : "12a3a34c-c37b-11e7-abc4-cec278b6b50a", "display_name" : "nsx-default-tunnel-profile", "enable_perfect_forward_secrecy" : true, "encryption_algorithms" : [ "AES_128" ], "digest_algorithms" : [ "SHA2_256" ], "sa_life_time" : 3600, "dh_groups" : [ "GROUP14" ], "encapsulation_mode" : "TUNNEL_MODE", "transform_protocol" : "ESP", "df_policy" : "COPY", "_create_time" : 1517289492671, "_last_modified_user" : "system", "_last_modified_time" : 1517289492671, "_system_owned" : true, "_create_user" : "system", "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

crud

Feature:

vpn

Additional Errors: