GitLab API

GitlabTool

Actions1000

Overview

This node operation allows updating a specific container registry protection rule for a project in GitLab. It is useful for managing repository protection settings programmatically, such as modifying access rules for container registries within a project. For example, a user can update the protection rule by specifying the project ID and the protection rule ID along with the desired changes in the request body.

Use Case Examples

  1. Updating a container registry protection rule to change access permissions for a project repository in GitLab.
  2. Automating the modification of repository protection rules as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but PATCH is relevant here.
Path Parameters Parameters for the API path including project ID and protection rule ID.

Output

JSON

  • response - The JSON response from the GitLab API after updating the protection rule.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and protection rule ID are correct and exist in GitLab.
  • Verify that the authentication credentials are valid and have sufficient permissions to update repository protection rules.
  • Check that the request body schema matches the expected format for the PATCH operation to avoid validation errors.

Links

Discussion