---
title: "List all container repository protection rules"
method: GET
path: "/api/v4/projects/{id}/registry/protection/repository/rules"
tags: ["projects"]
---

# List all container repository protection rules

`GET /api/v4/projects/{id}/registry/protection/repository/rules`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/registry/protection/repository/rules`
- Auth: none declared

Lists all container repository protection rules for a specified project.

## Path parameters

- `id` string, required

## Response `200`

List all container repository protection rules

- APIEntitiesProjectsContainerRegistryProtectionRule[]
  - `id` integer, required
  - `project_id` integer, required
  - `repository_path_pattern` string, required
  - `minimum_access_level_for_push` string, required
  - `minimum_access_level_for_delete` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
