GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific container protection rule from a project's registry in GitLab. It is useful for managing and maintaining container security policies by removing outdated or unnecessary protection rules. For example, a DevOps engineer might use this operation to automate the cleanup of container protection rules in multiple projects.

Use Case Examples

  1. Deleting a container protection rule by specifying the project ID and the protection rule ID to ensure the registry is secured according to updated policies.
  2. Automating the removal of deprecated container protection rules across projects to maintain compliance and security standards.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the 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 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 whether the deletion was successful.
  • message - Additional information or error message related to the deletion operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and protection rule ID are correct and exist in the GitLab instance.
  • Verify that the authentication credentials have sufficient permissions to delete container protection rules.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or rule does not exist, and 403 Forbidden if the user lacks permissions.

Links

Discussion