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

Create a relay zone

Creates a relay zone with its relays and starts their deploy as a tracked workflow. TSE_PUBLIC_URL must use a DNS name. Rejected with 409 when a relay does not resolve the host name of the console, does not reach it, or does not trust its certificate.

POST/api/v1/relay-zones
Authorization
tse_sessionAPI key · cookierequired
Request body
requiredapplication/json
addressstringrequired

The IPv4 address of the zone: a free address in a subnet of a network interface on each relay, outside the mesh subnet. The relays hold it with keepalived, which uses its last octet as the VRRP router ID.

namestringrequired

The name of the zone.

server_idsstring[]required

The relays: enrolled free servers that reach the console directly and that the servers of the zone reach.

min items 1 · max items 16
Responses
202

Accepted

idstringrequired
workflow_idstringrequired
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 POST 'https://console.example.com/api/v1/relay-zones' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "address": "string",
  "name": "string",
  "server_ids": [
    "string"
  ]
}'
Response
{
  "id": "string",
  "workflow_id": "string"
}