Create L2 Vpn Tunnel
Creates an L2 VPN tunnel on the Edge Gateway.
Request
URI
POST
https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/l2vpn/tunnels
COPY
Path Parameters
string
gatewayId
Required
gatewayId
Request Body
EdgeL2VpnTunnel
of type(s)
application/json
Optional
Show optional properties
{
"name": "string",
"localEndpointIP": "string",
"remoteEndpointIP": "string",
"sessionMode": "string"
}
{
"id": "36cc5a80-f99f-4350-b268-bb9111141a6e",
"name": "string",
"description": "string",
"localEndpointIP": "string",
"remoteEndpointIP": "string",
"tunnelInterface": "string",
"preSharedKey": "string",
"connectorInitiationMode": "string",
"enabled": false,
"sessionMode": "string",
"peerCode": "string",
"attachedNetworks": [
{
"name": "string",
"id": "string"
}
],
"stretchedNetworks": [
{
"networkRef": {
"name": "string",
"id": "string"
},
"tunnelId": 0
}
],
"logging": false,
"version": {
"version": 0
}
}
Responses
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
400
Invalid configuration.
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
404
The specified resource was not found
Returns
Error
of type(s)
*/*;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"localEndpointIP:"string","name:"string","remoteEndpointIP:"string","sessionMode:"string"}' https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/l2vpn/tunnels
Availability
Added in 35.0
On This Page
Edge Gateway L2vpn Tunnels Operations
GET
Get L2 Vpn Tunnels
POST
Create L2 Vpn Tunnel