GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific NuGet package version from a GitLab project using the GitLab API. It is useful for managing and cleaning up NuGet packages in a project's package registry by removing outdated or unwanted package versions. For example, a developer can automate the deletion of deprecated NuGet package versions from their GitLab project to maintain a clean package repository.

Use Case Examples

  1. Automate removal of a specific NuGet package version from a GitLab project.
  2. Clean up old or deprecated NuGet packages in a project's package registry.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to 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.
Query Parameters Query parameters for the request including the NuGet package name and version to delete.
Path Parameters Path parameters for the request including the project ID or URL-encoded path.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • message - Response message or confirmation of the delete operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and package details (name and version) are correctly specified to avoid 404 Not Found errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials are correctly configured.
  • Permission errors may occur if the API key does not have sufficient rights to delete packages; ensure the API key has appropriate access.

Links

Discussion