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

Redeploy a relay zone

Runs the deploy of the relays of the zone again, one relay at a time, the relay that holds the address of the zone last. A relay that fails stops the redeploy. The zone must be running or failed, and each relay must reach the console by its host name (409). A completed redeploy sets a failed zone to running. With rotate_enroll_key, the zone gets a new enroll key when the workflow starts, and the enroll routes answer 410 for each enroll command of the zone from before. When a relay does not reach the console then, the answer is 202 and the workflow fails: the zone has the new key and needs a redeploy.

POST/api/v1/relay-zones/{id}/redeploy
Authorization
tse_sessionAPI key · cookierequired
Path parameters
idstringrequired
Request body
application/json
rotate_enroll_keyboolean

true: the zone gets a new enroll key, and the redeploy gives it to each relay. An enroll command of the zone from before the change no longer works. Use it when a copy of the enroll key may have leaked.

Responses
202

Accepted

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/string/redeploy' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "rotate_enroll_key": true
}'
Response
{
  "workflow_id": "string"
}