Get L2 Vpn Tunnels

Get L2 Vpn Tunnels

Retrieves all L2 VPN tunnels that are configured for an edge gateway. Results can be sorted by only a single parameter. Sorting by combination of parameters (sortAsc=foo&sortDesc=bar) is not allowed.

Request
URI
GET
https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/l2vpn/tunnels
COPY
Path Parameters
string
gatewayId
Required

gatewayId

string
gatewayId
Required

gatewayId

Query Parameters
string
cursor
Optional

Field used for getting next page of records. The value is supplied by the current result page. If not set, the first page is retrieved. If cursor is set, then all other pagination query parameters such as pageSize, sortDesc, sortAsc, queryFilter are ignored.

integer
pageSize
Required

Results per page to fetch.

string
sortAsc
Optional

Field to use for ascending sort

string
sortDesc
Optional

Field to use for descending sort


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns EdgeL2VpnTunnels of type(s) application/json;version=39.0
This response body class contains all of the following: NetworkingObjectStatus , InlineEdgeL2VpnTunnels1
{
    "status": {},
    "values": [
        {
            "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
            }
        }
    ]
}

404

The specified resource was not found

Returns Error of type(s) application/json;version=39.0
{
    "minorErrorCode": "string",
    "message": "string",
    "stackTrace": "string"
}
string
minorErrorCode
Required

minorErrorCode

string
message
Required

message

string
stackTrace
Optional

stackTrace