projects

List all package protection rules

Lists all package protection rules for a specified project.

get/api/v4/projects/{id}/packages/protection/rules

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Response

List all package protection rules

idinteger required
project_idinteger required
package_name_patternstring required
package_typestring required
minimum_access_level_for_deletestring required
minimum_access_level_for_pushstring required

Example response

[
  {
    "id": 1,
    "project_id": 1,
    "package_name_pattern": "flightjs/flight",
    "package_type": "npm",
    "minimum_access_level_for_delete": "owner",
    "minimum_access_level_for_push": "maintainer"
  }
]

Changes

No recorded changes to this operation across all 5 revisions of this API.