Skip to main content
POST
/
projects
/
{project_id}
/
services
/
{service_id}
/
replicaSets
Create a Read Replica Set
curl --request POST \
  --url https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/services/{service_id}/replicaSets \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-reporting-replica",
  "nodes": 2,
  "cpu_millis": 250,
  "memory_gbs": 1
}'
{
  "id": "alb8jicdpr",
  "name": "reporting-replica-1",
  "status": "active",
  "nodes": 2,
  "cpu_millis": 250,
  "memory_gbs": 1,
  "metadata": {
    "environment": "<string>"
  },
  "endpoint": {
    "host": "my-service.com",
    "port": 8080
  },
  "connection_pooler": {
    "endpoint": {
      "host": "my-service.com",
      "port": 8080
    }
  }
}

Path Parameters

project_id
string
required

The unique identifier of the project.

Example:

"rp1pz7uyae"

service_id
string
required

The unique identifier of the service.

Example:

"d1k5vk7hf2"

Body

application/json
name
string
required

A human-readable name for the read replica.

Example:

"my-reporting-replica"

nodes
integer
required

Number of nodes to create in the replica set.

Example:

2

cpu_millis
integer
required

The initial CPU allocation in milli-cores.

Example:

250

memory_gbs
integer
required

The initial memory allocation in gigabytes.

Example:

1

Response

Read replica set creation request has been accepted.

id
string
Example:

"alb8jicdpr"

name
string
Example:

"reporting-replica-1"

status
enum<string>
Available options:
creating,
active,
resizing,
deleting,
error
Example:

"active"

nodes
integer

Number of nodes in the replica set.

Example:

2

cpu_millis
integer

CPU allocation in milli-cores.

Example:

250

memory_gbs
integer

Memory allocation in gigabytes.

Example:

1

metadata
object

Additional metadata for the read replica set

endpoint
object
connection_pooler
object