GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves package files from a specific package within a project in GitLab using the GitLab API v4. It is useful for scenarios where users need to list or manage files associated with a package in a GitLab project, such as for automation of package management or integration with CI/CD pipelines.

Use Case Examples

  1. Fetch all files of a package in a project to verify contents before deployment.
  2. Automate retrieval of package files metadata for reporting or auditing purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public projects or testing.
Authentication Type of authentication used, default is GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Required path parameters identifying the project and package.

Output

JSON

  • id - Unique identifier of the package file
  • name - Name of the package file
  • size - Size of the package file in bytes
  • created_at - Timestamp when the package file was created
  • file_type - Type of the package file
  • file_name - Name of the file stored in the package
  • package_id - ID of the package to which the file belongs

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and package ID are correct and accessible with the provided credentials.
  • Check that the GitLab API base URL is correct, especially if using a self-hosted GitLab instance.
  • Verify that the authentication token has sufficient permissions to access package files.
  • Common errors include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion