---
title: "Gets the current state for a given rollup rule in a given namespace"
method: GET
path: "/namespaces/{namespaceID}/rollup-rules/{ruleID}"
tags: ["rollup-rules"]
---

# Gets the current state for a given rollup rule in a given namespace

`GET /namespaces/{namespaceID}/rollup-rules/{ruleID}`

## Path parameters

- `namespaceID` string, required
- `ruleID` string, required

## Response `200`

rule state sorted latest first

- RollupRule
  - `id` string
  - `name` string
  - `filter` string
  - `cutoverMillis` integer
  - `targets` RollupTarget[]
    - `pipeline` unknown[]
      - unknown
    - `storagePolicies` string[]
  - `lastUpdatedBy` string
  - `lastUpdatedAtMillis` integer

## Other responses

- `404` — no such namespace or no such rule
- `500` — Something went horribly wrong

---

[API](https://skmtc.net/m3db/apis/r2-api.md) · [All operations](https://skmtc.net/m3db/apis/r2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/m3db/r2-api/versions/0e7f233d17fb/schema)
