GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows updating a specific container registry protection rule for a project in GitLab. It is useful for managing and modifying repository protection rules programmatically, such as changing access controls or permissions on container registry repositories within a GitLab project.

Use Case Examples

  1. Updating a container registry protection rule to change its access level for a project.
  2. Modifying repository protection settings to enhance security for container images in a GitLab project.

Properties

Name Meaning
Skip Authentication Determines 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 with options including POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required in the request path to identify the project and the specific protection rule to update.

Output

JSON

  • response - The JSON response from GitLab API after updating the container registry protection rule, containing details of the updated rule.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and protection rule ID are correctly specified and exist in GitLab.
  • Verify that the authentication credentials are valid and have sufficient permissions to update container registry protection rules.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the project or rule ID is invalid, and 401 Unauthorized if authentication fails.

Links

Discussion