Policy > Networking > Network Services > VPN > L2VPN > Sessions

Create or fully replace L2VPN session under Tier-0 (Deprecated)

Create or fully replace L2VPN session under Tier-0. API supported
only when L2VPN Service is in Server Mode.
Revision is optional for creation and required for update.
This API is deprecated. Please use PUT /infra/tier-0s/<tier-0-id>/
l2vpn-services/<service-id>/sessions/<session-id> instead.
Note:
The API will return a new VPN path for "transport_tunnels" in the response payload instead of the deprecated API path
Both paths refer to the same object.
Please note that request is validated and any error messages returned from validation may include the new VPN path
instead of the deprecated path. Both new path and old path refer to same resource.
Also VPN path returned in the Alarm, GPRR payload may include the new VPN path.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/l2vpn-services/<service-id>/sessions/<session-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
L2VPNSession+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-0s/ext_net/locale-services/default/l2vpn-services/default/sessions/stretched-pa-site { "description": "Stretched Palo Alto Site", "display_name": "stretched-pa-site", "enabled" : true, "transport_tunnels": [ "/infra/tier-0s/ext_net/locale-services/default/ipsec-vpn-services/default/sessions/rbs-1" ], "_revision" : 0 }

Successful Response:

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

Example Response:

{ "resource_type": "L2VPNSession", "description": "Stretched Palo Alto Site", "display_name": "stretched-pa-site", "enabled" : true, "transport_tunnels": [ "/infra/tier-0s/ext_net/locale-services/default/ipsec-vpn-services/default/sessions/rbs-1" ], "_create_user": "admin", "_create_time": 1516385949942, "_last_modified_user": "admin", "_last_modified_time": 1516385949942, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

crud

Feature:

policy_vpn

Additional Errors: