Skip to content

List all container repository protection rules

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

Lists all container repository protection rules for a specified project.

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
repository_path_pattern
string
minimum_access_level_for_push
string
minimum_access_level_for_delete
string
Example
{
"id": 1,
"project_id": 1,
"repository_path_pattern": "flightjs/flight0",
"minimum_access_level_for_push": "maintainer",
"minimum_access_level_for_delete": "maintainer"
}

Bad Request

Unauthorized

Forbidden

Not Found