Saltar al contenido principal
POST
Create a read replica for a Postgres service
Initiate the process to create a new read replica for a Postgres service.

Permissions

The API key must have the control-plane:postgres-service:manage, control-plane:organization:create-service permissions.

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

organizationId
string<uuid>
requerido

ID of the organization that owns the Postgres service.

postgresId
string<uuid>
requerido

ID of the requested Postgres service.

Cuerpo

application/json
name
string
requerido

Name of the Postgres service. Alphanumerical string with whitespaces up to 50 characters.

Required string length: 1 - 50
pgConfig
Postgres Configuration · object

Postgres runtime configuration configuration.

Ejemplo:
pgBouncerConfig
PgBouncer Configuration · object

PgBouncer runtime configuration configuration.

Ejemplo:
tags
Postgres Tags · object[]

Tags associated with the Postgres service. Tag keys starting with “chc_” are reserved for internal use.

Maximum array length: 50

Respuesta

Successful response

status
number

HTTP status code.

Ejemplo:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object