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.
/api/v1/relay-zonestse_sessionAPI key · cookierequiredlivebooleanfalse: 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.
OK
zonesRelayZoneResponse[]requiredShow propertiesHide properties
RelayZoneResponseaddressstringrequiredThe IPv4 address of the zone: a VIP that one relay of the zone holds. The servers of the zone reach the console through it.
forwardingRelayZoneForwardingrequiredShow propertiesHide properties
detailstringrequiredWhat the check found.
statestringrequiredok: 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.
okfailednot_checkedidstringrequiredin_progressbooleantrue 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.
namestringrequiredredeploy_neededbooleantrue 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[]requiredShow propertiesHide properties
RelayZoneRelayholds_addressbooleantrue 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.
hoststringrequiredThe LAN address of the relay.
namestringrequiredoverlay_ipstringrequiredreachablebooleanThe 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_idstringrequiredserversRelayZoneServer[]requiredThe servers that reach the console through the zone.
Show propertiesHide properties
RelayZoneServeridstringrequirednamestringrequiredstatusstringrequiredpendingdeployingrunningfailedremovingupdate_availablebooleantrue 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_idstringThe newest workflow of the zone.
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message