GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves Debian package information from a specific GitLab project using the GitLab API. It is designed to fetch package details for a given Debian distribution, component, and architecture within a project. This is useful for automating package management and integration workflows in CI/CD pipelines or DevOps processes involving Debian packages hosted on GitLab.

Use Case Examples

  1. Fetch Debian package metadata for a project to automate deployment scripts.
  2. Retrieve package lists for a specific Debian distribution and architecture to verify package availability.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated requests.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is 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 Debian distribution codename or suite.
Path Parameters Path parameters specifying the project ID or URL-encoded path, Debian component, and architecture.

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
  • packages - The retrieved Debian package information for the specified parameters

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and path parameters are correctly URL-encoded and valid to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access the project's package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • If skipping authentication, confirm the project and package data are publicly accessible.

Links

Discussion