---
search:
  tags:
    - database-services
    - POST
seo:
  description: >-
    Checks the change of how the servers of… Reference for the POST
    /api/v1/database-services/{id}/network/preflight endpoint in the TimescaleDB
    Enterprise API.
sidebar:
  label: Check a change of network
  badge: POST
title: Check a change of network
type: openapi-operation
---
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`

**Request body** (`application/json`, required)

- `console_address` (string) — 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_id` (string) — The relay zone through which the servers reach the console. Empty: the servers reach the console directly.
- `with_backup_server` (boolean) — Change the backup server of the service too. It goes first.
- `with_dcs_cluster` (boolean) — 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.

Request body example:

```json
{
  "console_address": "string",
  "relay_zone_id": "string",
  "with_backup_server": true,
  "with_dcs_cluster": true
}
```

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "servers": [
    {
      "checks": [
        {
          "check": "string",
          "detail": "string",
          "status": "pass"
        }
      ],
      "role": "string",
      "server_id": "string",
      "server_name": "string"
    }
  ]
}
```
