Management Plane API >
Networking
>
VPN
>
L2VPN
>
Services
Delete a L2VPN service
Delete a specific L2VPN service. If there are any L2VpnSessions on this L2VpnService, those needs to be deleted first.
Request:
Method:
DELETE
URI Path(s):
/api/v1/vpn/l2vpn/services/<l2vpn-service-id>
Request Headers:
n/a
Query Parameters:
DeleteRequestParameters
+
DeleteRequestParameters
(
schema
)
Name
Description
Type
Notes
force
Force delete the resource even if it is being used somewhere
If true, deleting the resource succeeds even if it is being
referred as a resource reference.
boolean
Default: "False"
Request Body:
n/a
Example Request:
DELETE https://<nsx-mgr>/api/v1/vpn/l2vpn/services/f962173f-ac03-4d08-8366-56a41779f61d
Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a
Required Permissions:
crud
Feature:
vpn
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable