GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific Debian distribution associated with a GitLab project by its project ID and Debian codename. It is useful for managing Debian package repositories within GitLab projects, allowing users to remove outdated or unnecessary Debian distributions from their projects.

Use Case Examples

  1. Deleting a Debian distribution 'sid' from a project with ID '12345' to clean up the project's package repository.
  2. Removing a Debian distribution by specifying additional query parameters like suite, origin, or version to target a specific distribution variant.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API authentication.
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 relevant for this operation.
Query Parameters Optional query parameters to refine the deletion request, including suite, origin, label, version, description, valid_time_duration_seconds, components, and architectures.
Path Parameters Required path parameters identifying the project and Debian distribution to delete, specifically 'id' (project ID or URL-encoded path) and 'codename' (Debian codename).

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • responseBody - Body of the response returned after attempting to delete the Debian distribution

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and Debian codename are correctly specified; incorrect values will result in a 404 Not Found error.
  • Verify that the authentication token has sufficient permissions to delete Debian distributions in the project; insufficient permissions will cause authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • If query parameters are used, ensure they are valid and correctly formatted to avoid request errors.

Links

Discussion