GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves Debian package source information from a specific project in GitLab using the GitLab API. It is useful for users who want to access Debian package distribution details, including source package data, for a given project. For example, it can be used to automate the retrieval of Debian package sources for continuous integration or package management workflows.

Use Case Examples

  1. Fetch Debian source package information for a project identified by its ID, specifying the distribution codename and component.
  2. Automate monitoring of Debian package sources in a GitLab project to trigger downstream build processes.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Parameter Schema Defines required path and query parameters for the API call, including project ID, distribution codename, and component.
Request Body Schema Schema for the request body, not used in this GET operation.
Request Path API endpoint path template for retrieving Debian source package information.
Query Parameters Collection of query parameters, specifically the Debian distribution codename.
Path Parameters Collection of path parameters including project ID and Debian component.

Output

JSON

  • id - The project ID or identifier used in the request path.
  • distribution - The Debian distribution codename or suite specified in the query.
  • component - The Debian component specified in the request path.
  • sources - The retrieved Debian source package information from the GitLab API response.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and component parameters are correctly URL-encoded to avoid 404 errors.
  • Verify that the GitLab API key has sufficient permissions to access the project's package registry.
  • Check that the distribution codename matches an existing Debian distribution in the project to prevent empty or error responses.

Links

Discussion