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

# GET /rulesets

`GET /rulesets`

List all rulesets available in the current account or rulesets associated with a specific resource (dataset).

## Query parameters

- `targetArn` string
- `maxResults` integer
- `nextToken` string
- `MaxResults` string
- `NextToken` string

## Response `200`

Success

- ListRulesetsResponse
  - `Rulesets` RulesetItem[], required — A list of RulesetItem. RulesetItem contains meta data of a ruleset.
    - `AccountId` string — The ID of the Amazon Web Services account that owns the ruleset.
    - `CreatedBy` string — The Amazon Resource Name (ARN) of the user who created the ruleset.
    - `CreateDate` string, date-time — The date and time that the ruleset was created.
    - `Description` string — The description of the ruleset.
    - `LastModifiedBy` string — The Amazon Resource Name (ARN) of the user who last modified the ruleset.
    - `LastModifiedDate` string, date-time — The modification date and time of the ruleset.
    - `Name` string, required — The name of the ruleset.
    - `ResourceArn` string — The Amazon Resource Name (ARN) for the ruleset.
    - `RuleCount` integer — The number of rules that are defined in the ruleset.
    - `Tags` object — Metadata tags that have been applied to the ruleset.
    - `TargetArn` string, required — The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
  - `NextToken` string — A token that you can use in a subsequent call to retrieve the next set of results.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException

---

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