NSX-T Data Center REST API

Delete a L2VPN session (Deprecated)

Delete a specific L2VPN session. If there are any logical switch ports attached to it, those needs to be deleted first. Deprecated:
Please use below Policy APIs.
DELETE /policy/api/v1/infra/tier-0s/<tier-0-id>/l2vpn-services/<service-id>/sessions/<session-id>
DELETE /policy/api/v1/infra/tier-1s/<tier-1-id>/l2vpn-services/<service-id>/sessions/<session-id>

Request:

Method:
DELETE
URI Path(s):
/api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

DELETE https://<nsx-mgr>/api/v1/vpn/l2vpn/sessions/f962173f-ac03-4d08-8366-56a41779f611

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

vpn

Additional Errors: