Перейти к основному содержанию
PATCH
Update Postgres service state
Initiate a process for a Postgres service:
  • restart: Initiates a service restart
  • promote: Promotes a read replica to primary
  • switchover: Switch a primary over to a standby. If there is no standby, replace the primary with a newly provisioned server and switch over to it.

Permission

The API key must have the control-plane:postgres-service:manage permission.

Авторизации

Authorization
string
header
обязательно

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

Параметры пути

organizationId
string<uuid>
обязательно

ID of the organization that owns the Postgres service.

postgresId
string<uuid>
обязательно

ID of the requested Postgres service.

Тело

application/json
command
enum<string>

Postgres status, which initiates a process.

Доступные опции:
restart,
promote,
switchover

Ответ

Successful response

status
number

HTTP status code.

Пример:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object