메인 콘텐츠로 건너뛰기
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