---
title: "POST /ListMetricSets"
method: POST
path: "/ListMetricSets"
---

# POST /ListMetricSets

`POST /ListMetricSets`

Lists the datasets in the current AWS Region.

Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.

## Query parameters

- `MaxResults` string
- `NextToken` string

## Request body

- object
  - `AnomalyDetectorArn` string — The ARN of the anomaly detector containing the metrics sets to list.
  - `MaxResults` integer — The maximum number of results to return.
  - `NextToken` string — If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.

## Response `200`

Success

- ListMetricSetsResponse
  - `MetricSetSummaryList` MetricSetSummary[] — A list of the datasets in the AWS Region, with configuration details for each.
    - `MetricSetArn` string — The ARN of the dataset.
    - `AnomalyDetectorArn` string — The ARN of the detector to which the dataset belongs.
    - `MetricSetDescription` string — The description of the dataset.
    - `MetricSetName` string — The name of the dataset.
    - `CreationTime` string, date-time — The time at which the dataset was created.
    - `LastModificationTime` string, date-time — The time at which the dataset was last modified.
    - `Tags` object — The dataset's <a href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a>.
  - `NextToken` string — If the response is truncated, the list call returns this token. To retrieve the next set of results, use the token in the next list request.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — AccessDeniedException
- `483` — TooManyRequestsException
- `484` — InternalServerException

---

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