PATCH
/v1/organizations/{organizationId}/postgres/{postgresId}/stateInitiate 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.
Path parameters
Request bodyJSON
Response
JSON
200
Successful response
400
The request cannot be processed due to a client error. Please verify your request parameters and try again.
500
An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.