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

Check a change of network

Checks the change of how the servers of the service reach the console: through a relay zone, or directly. Each server gets the row console_path (it reaches the console on the new path, or has it already) and the row mapping when its hosts line does not match its path. With with_dcs_cluster, the members of the standalone DCS cluster get the same rows (role dcs). A network row warns when the change puts the DCS cluster, the backup server, a LiveSync peer or another service of the backup server in another network.

POST/api/v1/database-services/{id}/network/preflight
Authorization
tse_sessionAPI key · cookierequired
Path parameters
idstringrequired
Request body
requiredapplication/json
console_addressstring

For servers that reach the console directly: the IPv4 address of the console, for servers that cannot resolve the host name of the console by DNS. Not together with relay_zone_id.

relay_zone_idstring

The relay zone through which the servers reach the console. Empty: the servers reach the console directly.

with_backup_serverboolean

Change the backup server of the service too. It goes first.

with_dcs_clusterboolean

Change the standalone DCS cluster of the service too. Its members go after the servers of the service, the etcd leader last. Each other service of the DCS cluster must be in the target network.

Responses
200

OK

serversServerPreflightResult[]required
Show properties
Array of ServerPreflightResult
checksPreflightCheckResult[]required
Show properties
Array of PreflightCheckResult
checkstringrequired
detailstring
statusstringrequired
Allowed:passwarnfail
rolestringrequired
server_idstringrequired
server_namestringrequired
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/database-services/string/network/preflight' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "console_address": "string",
  "relay_zone_id": "string",
  "with_backup_server": true,
  "with_dcs_cluster": true
}'
Response
{
  "servers": [
    {
      "checks": [
        {
          "check": "string",
          "detail": "string",
          "status": "pass"
        }
      ],
      "role": "string",
      "server_id": "string",
      "server_name": "string"
    }
  ]
}