GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific package protection rule from a project in GitLab. It is useful for managing project package security by removing outdated or unnecessary protection rules. For example, a user can automate the cleanup of package protection rules in their GitLab projects to maintain security policies.

Use Case Examples

  1. Deleting a package protection rule by specifying the project ID and the rule ID to automate project security management.
  2. Removing a package protection rule as part of a CI/CD pipeline to update project configurations.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to DELETE.
Path Parameters Parameters required in the request path to identify the project and the package protection rule to delete.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • package_protection_rule_id - The ID of the package protection rule that was deleted.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and package protection rule ID are correct and exist in the GitLab instance.
  • Verify that the authentication credentials are valid and have sufficient permissions to delete package protection rules.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab.

Links

Discussion