GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves Debian package source information from a specified GitLab group using the GitLab API. It is useful for automating the management and querying of Debian package distributions within GitLab groups, such as fetching source package details for a given Debian distribution and component.

Use Case Examples

  1. Fetch source package details for the 'main' component of a Debian distribution named 'my-distro' in a specific GitLab group identified by its ID or full path.
  2. Automate retrieval of Debian package sources for integration into CI/CD pipelines or package management workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Query parameters for the API request, specifically the 'distribution' parameter representing the Debian Codename or Suite.
Path Parameters Path parameters for the API request, including 'id' (the group ID or full group path) and 'component' (the Debian Component).

Output

JSON

  • response - The JSON response from the GitLab API containing Debian package source information for the specified group, distribution, and component.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or full group path ('id') is correctly specified and accessible with the provided authentication.
  • Verify that the 'distribution' query parameter and 'component' path parameter are correctly set to valid Debian distribution and component names.
  • Check network connectivity and the base URL to ensure the GitLab instance is reachable.
  • If authentication is skipped, ensure the API endpoint allows unauthenticated access, otherwise authentication errors will occur.

Links

Discussion