---
title: "Get all the alert rules."
method: GET
path: "/api/v1/provisioning/alert-rules"
tags: ["provisioning"]
---

# Get all the alert rules.

`GET /api/v1/provisioning/alert-rules`

## Response `200`

ProvisionedAlertRules

- ProvisionedAlertRule[]
  - `annotations` object
  - `condition` string, required
  - `data` AlertQuery[], required
    - `datasourceUid` string — Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.
    - `model` object — JSON is the raw JSON query and includes the above properties as well as custom properties.
    - `queryType` string — QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.
    - `refId` string — RefID is the unique identifier of the query, set by the frontend call.
    - `relativeTimeRange` RelativeTimeRange — RelativeTimeRange is the per query start and end time for requests.
      - `from` integer
      - `to` integer
  - `execErrState` 'Alerting' | 'Error' | 'OK', required
  - `folderUID` string, required
  - `for` integer, required
  - `id` integer
  - `isPaused` boolean
  - `labels` object
  - `noDataState` 'Alerting' | 'NoData' | 'OK', required
  - `orgID` integer, required
  - `provenance` string
  - `ruleGroup` string, required
  - `title` string, required
  - `uid` string
  - `updated` string, date-time

---

[API](https://skmtc.net/nforgeio/apis/grafana-http-api.md) · [All operations](https://skmtc.net/nforgeio/apis/grafana-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nforgeio/grafana-http-api/revisions/3cb6c3f42dc7/schema)
