GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific container registry protection rule from a GitLab project. It is useful for managing container registry security by removing outdated or unnecessary protection rules. For example, a DevOps engineer might use this node to automate the cleanup of registry protection rules in CI/CD pipelines.

Use Case Examples

  1. Delete a container registry protection rule by specifying the project ID and the protection rule ID.
  2. Automate the removal of registry protection rules during project decommissioning.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is DELETE.
Path Parameters Parameters required in the request path to identify the project and the protection rule to delete.

Output

JSON

  • success - Indicates whether the deletion was successful.
  • message - Additional information or error message related to the deletion operation.

Dependencies

  • Requires GitLab API authentication credentials.

Troubleshooting

  • Ensure the project ID and protection rule ID are correct and exist in the GitLab instance.
  • Verify that the API token has sufficient permissions to delete registry protection rules.
  • Check network connectivity and the base URL configuration if requests fail.

Links

Discussion