GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific container registry protection repository rule from a GitLab project. It is useful for managing container registry security by removing protection rules that are no longer needed or need to be updated. For example, a DevOps engineer might use this node to automate the cleanup of outdated protection rules in their CI/CD pipeline.

Use Case Examples

  1. Deleting a container registry protection rule by specifying the project ID and the protection rule ID to maintain security policies.
  2. Automating the removal of protection rules during project decommissioning or restructuring.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the project and the protection rule to delete.

Output

JSON

  • success - Indicates if the deletion was successful
  • message - Additional information or error message returned from the API

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and protection rule ID are correct and exist in the GitLab instance.
  • Check that the API key has sufficient permissions to delete protection rules in the project.
  • Verify the base URL is correct if using a self-hosted GitLab instance.
  • Common error messages include 404 Not Found if the project or rule does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion