GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdRegistryProtectionRepositoryRules

AI-generated

Summary

Retrieve the protection rules for container registry repositories of a specific GitLab project using its ID or URL-encoded path.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project whose container registry repository protection rules are to be fetched.
  • Skip Authentication — Optionally skip authentication for this request; defaults to false, meaning authentication is used.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • Method — The HTTP method to use; defaults to GET and typically should remain as GET for this operation.

Output shape

a list of protection rules for the container registry repositories belonging to the specified GitLab project

The response returns the repository protection rules as defined by the GitLab API v4 for the '/projects/{id}/registry/protection/repository/rules' endpoint. Authentication is required unless 'Skip Authentication' is set to true. The 'id' path parameter is mandatory. The output will be the parsed JSON response from the GitLab API representing these rules.

Links

Discussion