GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve a specific file from a generic package within a project. It is useful for scenarios where you need to access package files stored in GitLab's generic package registry, such as downloading a specific version of a package file or inspecting package contents programmatically.

Use Case Examples

  1. Downloading a specific version of a package file from a GitLab project.
  2. Accessing package files for automated deployment or analysis workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Query Parameters Query parameters for the API request, including package_version (required) and optional path for file directory path.
Path Parameters Path parameters for the API request, including project id, package name, and file name.

Output

JSON

  • fileContent - Content of the retrieved package file.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, package name, package version, and file name are correctly specified to avoid 404 errors.
  • Check authentication credentials if receiving authorization errors.
  • Verify the base URL if using a self-hosted GitLab instance to ensure correct API endpoint.

Links

Discussion