---
title: "GET /rules"
method: GET
path: "/rules"
---

# GET /rules

`GET /rules`

Lists the rules for the specific topic.

Requires permission to access the [ListTopicRules](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Query parameters

- `topic` string
- `maxResults` integer
- `nextToken` string
- `ruleDisabled` boolean

## Response `200`

Success

- ListTopicRulesResponse — The output from the ListTopicRules operation.
  - `rules` TopicRuleListItem[] — The rules.
    - `ruleArn` string — The rule ARN.
    - `ruleName` string — The name of the rule.
    - `topicPattern` string — The pattern for the topic names that apply.
    - `createdAt` string, date-time — The date and time the rule was created.
    - `ruleDisabled` boolean — Specifies whether the rule is disabled.
  - `nextToken` string — The token to use to get the next set of results, or <b>null</b> if there are no additional results.

## Other responses

- `480` — InternalException
- `481` — InvalidRequestException
- `482` — ServiceUnavailableException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/revisions/deef5c4b09f0/schema)
