---
title: "Get Retention Metadatas"
method: GET
path: "/retentions/metadatas"
tags: ["Retention"]
---

# Get Retention Metadatas

`GET /retentions/metadatas`

Get Retention Metadatas.

## Headers

- `X-Request-Id` string

## Response `200`

Get Retention Metadatas successfully.

- RetentionMetadata — the tag retention metadata
  - `templates` RetentionRuleMetadata[] — templates
    - `rule_template` string — rule id
    - `display_text` string — rule display text
    - `action` string — rule action
    - `params` RetentionRuleParamMetadata[] — rule params
      - `type` string
      - `unit` string
      - `required` boolean
  - `scope_selectors` RetentionSelectorMetadata[] — supported scope selectors
    - `display_text` string
    - `kind` string
    - `decorations` string[]
  - `tag_selectors` RetentionSelectorMetadata[] — supported tag selectors
    - `display_text` string
    - `kind` string
    - `decorations` string[]

---

[API](https://skmtc.dev/cerit/apis/harbor-api.md) · [All operations](https://skmtc.dev/cerit/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerit/harbor-api/revisions/62d78801f8df/schema)
