GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves packages associated with a specific project in GitLab using the GitLab API v4. It is useful for scenarios where you need to list or manage project packages, such as fetching package details for project management, auditing, or integration with other systems.

Use Case Examples

  1. Fetch all packages for a given project by specifying the project ID.
  2. Filter packages by type, name, or version to get specific package information.
  3. Paginate through packages using page and per_page parameters to handle large sets of packages.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Collection of optional query parameters to filter and paginate the packages, including page number, items per page, order, sort direction, package type, package name, package version, inclusion of versionless packages, and package status.
Path Parameters Path parameter specifying the project ID or URL-encoded path to identify the project.

Output

JSON

  • id - Unique identifier of the package.
  • name - Name of the package.
  • version - Version of the package.
  • type - Type of the package (e.g., maven, npm, conan).
  • status - Current status of the package (e.g., default, hidden, processing).
  • created_at - Timestamp when the package was created.
  • updated_at - Timestamp when the package was last updated.
  • package_files - List of files associated with the package.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API credentials are valid and have the necessary permissions to access project packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or packages do not exist, and 401 Unauthorized if authentication fails.

Links

Discussion