Skip to content
TimescaleDB Enterprise
Esc
↑↓navigate↵open⌘Jpreview

List relay zones

Returns each relay zone with its relays, the servers that reach the console through it, a live check that its address forwards the mesh port of the console, and for each relay whether it holds the address of the zone. With live false, the console runs no check and gives the last results.

GET/api/v1/relay-zones
Authorization
tse_sessionAPI key · cookierequired
Query parameters
liveboolean

false: run no check, and give the last results of the hourly relay check or of the last live list for the forwarding and the holders. A page that reads the list on each load uses it.

default: true
Responses
200

OK

zonesRelayZoneResponse[]required
Show properties
Array of RelayZoneResponse
addressstringrequired

The IPv4 address of the zone: a VIP that one relay of the zone holds. The servers of the zone reach the console through it.

forwardingRelayZoneForwardingrequired
Show properties
detailstringrequired

What the check found.

statestringrequired

ok: the mesh service of the console answers through the address of the zone. failed: it does not. not_checked: the console did not check, for example because the zone has no relay or another zone has the same address.

Allowed:okfailednot_checked
idstringrequired
in_progressboolean

true while the newest workflow of the zone runs: a deploy, an add or a removal of a relay, a redeploy, or the removal of the zone. Absent when false.

namestringrequired
redeploy_neededboolean

true when the relays of a running or failed zone run another configuration than a redeploy gives now: another certificate authority of the mesh, another enroll key or other console settings, or no deploy of all relays completed. Absent when false.

relaysRelayZoneRelay[]required
Show properties
Array of RelayZoneRelay
holds_addressboolean

true when the relay holds the address of the zone, false when it does not. Absent when the console did not ask the relay (reachable is false) or the relay did not answer. In the normal state, exactly one relay of a zone holds the address; the forwarding detail tells when no relay or more than one relay holds it.

hoststringrequired

The LAN address of the relay.

namestringrequired
overlay_ipstringrequired
reachableboolean

The reachable field of the server: true when the console reaches the relay over the mesh, false when not. Absent when no fresh reading tells it.

server_idstringrequired
serversRelayZoneServer[]required

The servers that reach the console through the zone.

Show properties
Array of RelayZoneServer
idstringrequired
namestringrequired
statusstringrequired
Allowed:pendingdeployingrunningfailedremoving
update_availableboolean

true when this console version has newer files or server components for the relays of a running or failed zone, and the configuration of the zone is the same. A redeploy of the zone installs them. Absent when false.

workflow_idstring

The newest workflow of the zone.

default

Error

codestring

Stable code of the refusal, when the route has codes

detailsstring[]

Additional detail, e.g. per-field validation failures

errorstringrequired

Human-readable error message

Request
curl -X GET 'https://console.example.com/api/v1/relay-zones' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "zones": [
    {
      "address": "string",
      "forwarding": {
        "detail": "string",
        "state": "ok"
      },
      "id": "string",
      "in_progress": true,
      "name": "string",
      "redeploy_needed": true,
      "relays": [
        {
          "holds_address": true,
          "host": "string",
          "name": "string",
          "overlay_ip": "string",
          "reachable": true,
          "server_id": "string"
        }
      ],
      "servers": [
        {
          "id": "string",
          "name": "string"
        }
      ],
      "status": "pending",
      "update_available": true,
      "workflow_id": "string"
    }
  ]
}