GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves Debian package information from a specific GitLab project using the GitLab API. It is useful for automating the fetching of Debian package metadata for a given project, distribution, component, and architecture. For example, it can be used in CI/CD pipelines to verify package availability or to integrate package data into other systems.

Use Case Examples

  1. Fetch Debian package metadata for a project with ID '123' for the 'my-distro' distribution, 'main' component, and 'binary-amd64' architecture.
  2. Automate retrieval of Debian installer binary package lists from GitLab for deployment or auditing purposes.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request (boolean). Defaults to false.
Authentication The authentication method to use for the API request, hidden unless Skip Authentication is false. Defaults to GitLab API key.
baseUrl The base URL of the GitLab instance to connect to. Defaults to https://gitlab.com.
Method The HTTP method to use for the request. Defaults to GET.
Query Parameters Query parameters for the request, specifically the 'distribution' parameter representing the Debian Codename or Suite.
Path Parameters Path parameters for the request including 'id' (project ID or URL-encoded path), 'component' (Debian Component), and 'architecture' (Debian Architecture).

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • distribution - The Debian Codename or Suite used in the query.
  • component - The Debian Component specified in the path.
  • architecture - The Debian Architecture specified in the path.
  • packages - The list of Debian packages retrieved from the GitLab project for the specified distribution, component, and architecture.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible with the provided authentication.
  • Verify that the distribution, component, and architecture parameters are correctly specified and supported by the GitLab project.
  • 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