OrgsWxTunnels

createOrgWxTunnel

POST
/api/v1/orgs/{org_id}/wxtunnels

Create Org WxAN Tunnel

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Path Parameters

org_id*string
Formatuuid

Request Body

application/json

Request Body

WxLAN tunnel configuration for L2TPv3 or DMVPN connectivity

dmvpn?

Settings for Dynamic Multipoint VPN on this WxLAN tunnel

for_mgmt?boolean

Determined during creation time and cannot be toggled. A management tunnel cannot be used by wxlan rule or by wlan

Defaultfalse
hello_interval?integer

In seconds, used as heartbeat to detect if a tunnel is alive. AP will try another peer after missing N hellos specified by hello_retries.

Range1 <= value <= 300
Default60
hello_retries?integer

Number of missed hello messages before the AP tries another tunnel peer

Range2 <= value <= 30
Default7
hostname?string

Optional, overwrite the hostname in SCCRQ control message, default is or null, %H and %M can be used, which will be replace with corresponding values:

  • %H: name of the ap if provided (and will be stripped so it can be used for hostname) and fallbacks to MAC
  • %M: MAC (e.g. 5c5b350e0060)
ipsec?

Security settings for IPsec on this WxLAN tunnel; requires DMVPN to be enabled

is_static?boolean

Whether it’s static/unmanaged (i.e. no control session). As the session configurations are not compatible, cannot be toggled.

Defaultfalse
mtu?integer

0 to enable PMTU, 552-1500 to start PMTU with a lower MTU

Range0 <= value <= 1500
Default0
name*string

The name of the tunnel

peers?array<string>

Remote peer IP addresses or hostnames for this tunnel

router_id?string

Optional, overwrite the router-id in SCCRQ control message, default is "" or null, can also be an IPv4 address

secret?string

Shared secret used for tunnel authentication, ‘’ if no auth is used

sessions?array<>

L2TPv3 sessions established for this tunnel

udp_port?integer

UDP port if use_udp==true

use_udp?boolean

Whether to use UDP instead of IP (proto=115, which is default of L2TPv3)

Defaultfalse

Response Body

curl -X POST "https://example.com/api/v1/orgs/000000ab-00ab-00ab-00ab-0000000000ab/wxtunnels" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "created_time": 0,  "dmvpn": {    "enabled": true,    "holding_time": 0,    "host_routes": [      "string"    ]  },  "for_mgmt": true,  "hello_interval": 1,  "hello_retries": 3,  "hostname": "string",  "id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1",  "ipsec": {    "enabled": true,    "psk": "string123"  },  "is_static": true,  "modified_time": 0,  "mtu": 1500,  "name": "string",  "org_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1",  "peers": [    "string"  ],  "router_id": "string",  "secret": "string",  "sessions": [    {      "ap_as_session_id": "string",      "comment": "string",      "enable_cookie": true,      "ethertype": "ethernet",      "local_session_id": 1,      "pseudo_802.1ad_enabled": true,      "remote_id": "string",      "remote_session_id": 1,      "use_ap_as_session_ids": true    }  ],  "site_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1",  "udp_port": 0,  "use_udp": true}