## Get Read Replica Sets

**get** `/projects/{project_id}/services/{service_id}/replicaSets`

Retrieves a list of all read replica sets associated with a primary service within a project.

### Path Parameters

- `project_id: string`

- `service_id: string`

### Returns

- `id: string`

  The unique identifier for the read replica set.

- `cpu_millis: number`

  CPU allocation in milli-cores.

- `memory_gbs: number`

  Memory allocation in gigabytes.

- `name: string`

  The name of the read replica set.

- `nodes: number`

  Number of nodes in the replica set.

- `service_id: string`

  The ID of the parent service this read replica set was created from.

- `status: "creating" or "active" or "resizing" or 2 more`

  The current status of the read replica set:

  - creating: the replica set is being provisioned
  - active: the replica set is provisioned and serving traffic
  - resizing: the replica set is being resized
  - deleting: the replica set is being deleted
  - error: the replica set is in an error state

  - `"creating"`

  - `"active"`

  - `"resizing"`

  - `"deleting"`

  - `"error"`

- `connection_pooler: optional ConnectionPooler`

  Connection pooler configuration for a service.

  - `endpoint: optional Endpoint`

    A network endpoint for connecting to a service.

    - `host: optional string`

      The hostname of the endpoint.

    - `port: optional number`

      The port of the endpoint.

- `endpoint: optional Endpoint`

  A network endpoint for connecting to a service.

- `metadata: optional object { environment }`

  Additional metadata for the read replica set.

  - `environment: optional string`

    Environment tag for the read replica set.

### Example

```http
curl https://console.cloud.tigerdata.com/public/api/v1/projects/$PROJECT_ID/services/$SERVICE_ID/replicaSets \
    -H "Authorization: Bearer $TIGER_CLOUD_API_KEY"
```

#### Response

```json
[
  {
    "id": "alb8jicdpr",
    "cpu_millis": 250,
    "memory_gbs": 1,
    "name": "reporting-replica-1",
    "nodes": 2,
    "service_id": "d1k5vk7hf2",
    "status": "active",
    "connection_pooler": {
      "endpoint": {
        "host": "i4wmp4crev.oec7sxsza2.tsdb.cloud.timescale.com",
        "port": 32625
      }
    },
    "endpoint": {
      "host": "i4wmp4crev.oec7sxsza2.tsdb.cloud.timescale.com",
      "port": 32625
    },
    "metadata": {
      "environment": "PROD"
    }
  }
]
```
