Update L2 Vpn Tunnel
Updates a specific L2 VPN tunnel for a given edge gateway.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/l2vpn/tunnels/{tunnelId}
COPY
Path Parameters
string
gatewayId
Required
gatewayId
string
tunnelId
Required
tunnelId
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 PUT -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/{tunnelId}
Availability
Added in 35.0
On This Page
Edge Gateway L2vpn Tunnel Operations
GET
Get L2 Vpn Tunnel
PUT
Update L2 Vpn Tunnel
DELETE
Delete L2 Vpn Tunnel
GET
Get L2 Vpn Tunnel Status
GET
Get L2 Vpn Tunnel Statistics