NSX-T Data Center REST API
Create or fully replace L2VPN session under Tier-1
Create or fully replace L2VPN session under Tier-1. API supportedonly when L2VPN Service is in Server Mode.
Revision is optional for creation and required for update.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-1s/{tier-1-id}/l2vpn-services/{service-id}/sessions/{session-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/l2vpn-services/{service-id}/sessions/{session-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/l2vpn-services/{service-id}/sessions/{session-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
L2VPNSession+
Example Request:
{ "description": "Stretched Palo Alto Site", "display_name": "stretched-pa-site", "enabled" : true, "transport_tunnels": [ "/infra/tier-1s/cgw/ipsec-vpn-services/default/sessions/rbs-1" ], "_revision" : 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
L2VPNSession+