GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the repository protection rules for the container registry of a specific project in GitLab. It is useful for users who want to programmatically access the security and access control settings related to the container registry within a GitLab project. For example, a DevOps engineer might use this to audit or automate the management of repository protection rules across multiple projects.

Use Case Examples

  1. Retrieve container registry protection rules for a project by specifying the project ID or URL-encoded path.
  2. Use the node to integrate GitLab container registry security settings into a CI/CD pipeline or compliance report.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path under the 'id' parameter.

Output

JSON

  • response - The JSON response containing the repository protection rules for the specified project container registry.

Dependencies

  • GitLab API key credential for authentication unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 Not Found errors.
  • If authentication is required, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access the project registry protection rules.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and accessible.

Links

Discussion