GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific Debian distribution associated with a project in GitLab. It is useful for managing Debian package repositories within GitLab projects by removing outdated or unnecessary Debian distributions. For example, a user can delete a Debian distribution identified by its codename from a project to clean up the repository.

Use Case Examples

  1. Deleting a Debian distribution with codename 'sid' from a project with ID '12345'.
  2. Removing an obsolete Debian distribution from a GitLab project to maintain repository hygiene.

Properties

Name Meaning
Skip Authentication Option 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 relevant here.
queryParameters.suite Optional Debian Suite query parameter to specify the suite of the distribution.
queryParameters.origin Optional Debian Origin query parameter to specify the origin of the distribution.
queryParameters.label Optional Debian Label query parameter to specify the label of the distribution.
queryParameters.version Optional Debian Version query parameter to specify the version of the distribution.
queryParameters.description Optional Debian Description query parameter to provide a description of the distribution.
queryParameters.valid_time_duration_seconds Optional duration in seconds before the Release file is considered expired by the client.
queryParameters.components Optional list of Components query parameter to specify components of the distribution.
queryParameters.architectures Optional list of Architectures query parameter to specify architectures of the distribution.
pathParameters.id The ID or URL-encoded path of the project from which the Debian distribution will be deleted.
pathParameters.codename The Debian Codename identifying the distribution to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body returned from the GitLab API after the delete operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and Debian codename are correctly specified; otherwise, the API will return an error indicating the resource was not found.
  • Authentication errors may occur if the API token is missing or invalid; verify the GitLab API credentials are correctly configured.
  • HTTP method must be set to DELETE to perform the deletion; using other methods will not delete the resource.
  • Query parameters are optional but must be correctly formatted if used; invalid parameters may cause the request to fail.

Links

Discussion