POST
/
{site_id}
/
tunnel
curl --request POST \
  --url https://api.altostrat.io/{site_id}/tunnel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tunnel_ip": "127.0.0.1",
  "name": "<string>",
  "priority": 123,
  "isp": "<string>",
  "isp_country": "<string>",
  "isp_asn": 123,
  "type": "fibre",
  "gateway": "127.0.0.1",
  "interface": "<string>",
  "wan_ip": "127.0.0.1",
  "anycast_ip": "127.0.0.1",
  "profile_ip": "127.0.0.1",
  "wan_provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "wan_provider_name": "<string>",
  "connected": true,
  "latency": 123,
  "packet_loss": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site_id
string
required

Site UUID

Body

application/json · object

Request to create a new tunnel

Creates a blank tunnel resource, or checks limit. This request often empty in code, but can exist for future fields.

Response

201
application/json

Tunnel created

The response is of type object.