Skip to content

List all container registry protection tag rules

GET
/api/v4/projects/{id}/registry/protection/tag/rules

Lists all container registry protection tag rules for a project. This feature was introduced in GitLab 18.7.

id
required
One of:
string

The ID or URL-encoded path of the project.

OK

Media type application/json
object
id
integer format: int64
project_id
integer format: int64
tag_name_pattern
string
minimum_access_level_for_push
string
minimum_access_level_for_delete
string
Example
{
"id": 1,
"project_id": 123,
"tag_name_pattern": "v*-release",
"minimum_access_level_for_push": "maintainer",
"minimum_access_level_for_delete": "maintainer"
}

Bad Request

Unauthorized

Forbidden

Not Found