GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific RPM package file from a GitLab project using the GitLab API. It is useful for automating the download or inspection of RPM package files stored in a project's package registry. For example, it can be used in CI/CD pipelines to fetch package files for deployment or analysis.

Use Case Examples

  1. Fetch an RPM package file by specifying the project ID, package file ID, and file name to automate package management workflows.
  2. Integrate with GitLab to programmatically access RPM package files for auditing or backup purposes.

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.
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 Parameters to specify the RPM package file ID and file name to retrieve.
Path Parameters Parameter to specify the project ID or URL-encoded path.

Output

Binary

The node outputs the RPM package file as binary data, allowing downstream nodes to process or save the file.

JSON

  • id - The project ID or URL-encoded path used in the request
  • package_file_id - The RPM package file ID specified in the query
  • file_name - The RPM package file name specified in the query
  • response - The response data from the GitLab API containing the RPM package file content or metadata

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, package file ID, and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to access the project's package registry.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the package file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion