GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific Debian package file from a GitLab project using the SHA256 hash of the file. It is useful for users who need to access or verify Debian package files stored in GitLab repositories by specifying detailed parameters such as project ID, distribution, component, architecture, and file hash.

Use Case Examples

  1. A DevOps engineer wants to automate the retrieval of a Debian package file from a GitLab project to verify its integrity using the SHA256 hash.
  2. A software distribution system fetches specific Debian package files from GitLab repositories based on architecture and distribution details for deployment automation.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API 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.
Query Parameters Query parameters for the request, specifically the Debian distribution codename or suite.
Path Parameters Path parameters required to specify the project ID, Debian component, architecture, and the SHA256 hash of the file.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • distribution - The Debian Codename or Suite.
  • component - The Debian Component.
  • architecture - The Debian Architecture.
  • file_sha256 - The SHA256 hash of the Debian package file.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure all required path parameters (id, component, architecture, file_sha256) and query parameter (distribution) are correctly provided to avoid request errors.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the project and package data.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.

Discussion