GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific RPM package file from a GitLab project using the GitLab API v4. It is useful for automating the download or inspection of RPM package files stored in GitLab projects, particularly in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Download an RPM package file from a GitLab project by specifying 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, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Parameter Schema Defines the required path and query parameters for the API call, including project ID, package file ID, and file name.
Request Path The API endpoint path template for retrieving the RPM package file.
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 or URL-encoded path.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID, package_file_id, and file_name parameters are correctly specified and URL-encoded if necessary.
  • Verify that the API authentication credentials are valid and have sufficient permissions to access the project and package files.
  • Check the baseUrl parameter if using a self-hosted GitLab instance to ensure it points to the correct URL.
  • Common error messages include 404 Not Found if the project or package file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion