GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdPackagesProtectionRules

AI-generated

Summary

Retrieve the package protection rules for a specific GitLab project by its ID or URL-encoded path using a GET request to the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project whose package protection rules you want to retrieve.
  • skipAuthentication — Optionally skip authentication; defaults to false, meaning authentication via the GitLab API credential is used.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • method — HTTP method to use, defaults to GET; typically GET is used for this operation.

Output shape

a list of package protection rule objects for the specified project

Returns all package protection rules associated with the project identified by the given ID or URL-encoded path. Requires authentication unless skipAuthentication is set to true.

Links

Discussion