Create L2VPN Session From Peer Code
DescriptionCreate or patch an L2VPN session from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.
Request
URLURL
Path Parameters
Path Parameters
Request Body
{
"description": "string",
"display_name": "string",
"enabled": false,
"transport_tunnels": [
{
"local_address": "string",
"peer_address": "string",
"peer_code": "string"
}
]
}
Description of L2VPN Session
Defaults to id if not set.
Enable to extend all the associated segments.
List of L2VPN transport tunnel data.
Authentication
Errors
Errors
Bad Request
Forbidden
Not Found
Precondition Failed
Internal Server Error
Service Unavailable
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-operation: create-l2vpn-session-from-peer-code
x-vmw-nsx-module: PolicyLayer2VPN