Postgres

Create a read replica for a Postgres service

Changed on

Initiate the process to create a new read replica for a Postgres service.

post/v1/organizations/{organizationId}/postgres/{postgresId}/readReplica

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the Postgres service.

postgresId, string uuid required
Example:f71df78e-ddad-82d0-8dfa-abbec741b82e

ID of the requested Postgres service.

Request body

PostgresServiceReadReplicaRequest required
name, string required

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

pgConfig, PgConfig

Postgres runtime configuration configuration.

pgBouncerConfig, PgBouncerConfig

PgBouncer runtime configuration configuration.

tags, ResourceTagsV1[]

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

Example request

{
  "pgConfig": {
    "max_connections": 100
  },
  "pgBouncerConfig": {
    "default_pool_size": "16"
  },
  "tags": [
    {
      "key": "Environment",
      "value": "staging"
    }
  ]
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, PostgresService

Example response

{
  "status": 200,
  "result": {
    "size": "m8gd.large",
    "tags": [
      {
        "key": "Environment",
        "value": "staging"
      }
    ],
    "ipAccessList": [
      {
        "source": "203.0.113.0/24",
        "portRange": "5432"
      }
    ],
    "id": "f71df78e-ddad-82d0-8dfa-abbec741b82e",
    "createdAt": "2026-03-26T20:51:16.384Z",
    "earliestRestoreTime": "2026-03-19T20:51:16Z"
  }
}

Changes

    • info

      removed the c3-standard-lssd-176 enum value from the result/size response property for the response status

    • info

      removed the c3-standard-lssd-22 enum value from the result/size response property for the response status

    • info

      removed the c3-standard-lssd-4 enum value from the result/size response property for the response status

    189 more changes in this revision