GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves package files from a specific package within a project on 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 automating package file retrieval for CI/CD pipelines or auditing package contents.

Use Case Examples

  1. Fetching all files of a package in a project to verify contents before deployment.
  2. Automating the download of package files for backup or analysis.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Parameter Schema Defines the parameters required and optional for the API call, including project ID, package ID, and pagination options. This is hidden and used internally.
Request Body Schema Schema for the request body, which is null for this GET operation.
Request Path The API endpoint path template for retrieving package files from a project package.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Required path parameters specifying the project ID or URL-encoded path and the package ID.

Output

JSON

  • package_files - List of package files retrieved from the specified package in the project.
  • pagination - Pagination details such as current page, total pages, and items per page.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to access the project's packages.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Pagination parameters should be valid integers; otherwise, the API may return errors or unexpected results.

Links

Discussion