---
title: "GET /api/v1/config/mapping-rules"
method: GET
path: "/api/v1/config/mapping-rules"
tags: ["MappingRule"]
---

# GET /api/v1/config/mapping-rules

`GET /api/v1/config/mapping-rules`

## Query parameters

- `page.max_size` integer
- `page.token` string
- `slugs` string[]
- `bucket_slugs` string[]
- `names` string[]

## Response `200`

A successful response.

- Configv1ListMappingRulesResponse
  - `page` Configv1PageResult
    - `next_token` string — Opaque page token which identifies the next page of items which the client should request. An empty next_token indicates that there are no more items to return.
  - `mapping_rules` Configv1MappingRule[]
    - `slug` string — Unique identifier of the MappingRule. If a `slug` isn't provided, one will be generated based of the `name` field. You can't modify this field after the MappingRule is created.
    - `name` string — Required. Name of the MappingRule. You can modify this value after the MappingRule is created.
    - `created_at` string, date-time — Timestamp of when the MappingRule was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the MappingRule was last updated. Cannot be set by clients.
    - `bucket_slug` string — Required. Slug of the bucket the MappingRule belongs to.
    - `filters` Configv1LabelFilter[] — Required filters that determine to which metrics to apply the rule.
      - `name` string — Name of the label to match.
      - `value_glob` string — Glob value of the label to match.
    - `aggregation_policy` MappingRuleAggregationPolicy
      - `aggregation` 'LAST' | 'MIN' | 'MAX' | 'MEAN' | 'MEDIAN' | 'COUNT' | 'SUM' | 'SUMSQ' | 'STDEV' | 'P10' | 'P20' | 'P30' | 'P40' | 'P50' | 'P60' | 'P70' | 'P80' | 'P90' | 'P95' | 'P99' | 'P999' | 'P9999' | 'P25' | 'P75' | 'COUNT_SAMPLES' | 'HISTOGRAM'
      - `storage_policy` Configv1MappingRuleStoragePolicy
        - `resolution` string — Required resolution of the aggregated metrics.
        - `retention` string — Required retention of the aggregated metrics.
      - `interval` string — Interval between aggregated data points, equivalent to the resolution field in storage policy. If set, then the storage_policy field can't be set.
      - `drop_timestamp` boolean — Deprecated: This field is no longer supported.
    - `drop` boolean — Whether to drop the given set of metrics. If set, then the aggregation policy can't be set.
    - `mode` 'ENABLED' | 'PREVIEW' — - ENABLED: ENABLED rules are applied. Rules default to ENABLED. - PREVIEW: PREVIEW rules are not applied, but shaping impact stats for them rule are recorded.

## Other responses

- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.net/chronosphere/apis/config-v1-api.md) · [All operations](https://skmtc.net/chronosphere/apis/config-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chronosphere/config-v1-api/revisions/530951bd2ccf/schema)
