GitLab API

GitlabTool

Actions905

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 GitLab projects, especially in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Download a specific RPM package file from a GitLab project by providing the project ID, package file ID, and file name.
  2. Automate retrieval of RPM package files for deployment or analysis in a DevOps pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the required parameters for the API call: project ID (path), package_file_id (query), and file_name (query).
Query Parameters Collection of query parameters including package_file_id and file_name to specify the RPM package file to retrieve.
Path Parameters Collection of path parameters including the project ID to specify the GitLab project.

Output

JSON

  • id - The ID of the project.
  • package_file_id - The ID of the RPM package file.
  • file_name - The name of the RPM package file.
  • content - The content or metadata of the retrieved RPM package file.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, package_file_id, and file_name are correctly provided and URL-encoded if necessary.
  • Check that the GitLab API key has sufficient permissions to access the project and package files.
  • Verify the baseUrl is correct and accessible.
  • Common errors include 404 Not Found if the project or package file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion