GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves Debian package source files from a GitLab group repository using the GitLab API. It is designed to fetch specific Debian package distribution components by their SHA256 file hash, which is useful for managing and verifying Debian packages in a GitLab group environment. Practical use cases include automating package retrieval for CI/CD pipelines, auditing package sources, or integrating Debian package management within GitLab projects.

Use Case Examples

  1. Fetch a Debian package source file by specifying the group ID, distribution codename, component, and SHA256 hash of the file to verify package integrity.
  2. Automate retrieval of Debian package sources for deployment or testing in a GitLab-based infrastructure.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated access scenarios.
Authentication Type of authentication used for the API request, typically an API key credential for GitLab.
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 group ID, distribution codename, component, and file SHA256 hash.
Request Body Schema Schema for the request body, null for this GET operation.
Request Path API endpoint path template for the request.
Query Parameters Collection of query parameters, specifically the Debian distribution codename.
Path Parameters Collection of path parameters including group ID, Debian component, and SHA256 hash of the file.

Output

JSON

  • response - The JSON response from the GitLab API containing the Debian package source file details or content.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and full group path are correct to avoid 404 errors.
  • Verify the SHA256 hash is accurate and corresponds to an existing file to prevent not found errors.
  • Check API authentication credentials if authentication is not skipped to avoid unauthorized errors.
  • Confirm the base URL is correct if using a self-hosted GitLab instance.

Links

Discussion