GitLab API

GitlabTool

Actions1000

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 tools.

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 The 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.
Path Parameters Path parameter specifying the project ID or URL-encoded path.

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).
  • status - Current status of the package.
  • created_at - Timestamp when the package was created.
  • updated_at - Timestamp when the package was last updated.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID is correct and accessible with the provided authentication.
  • Check that the base URL is correct for your GitLab instance.
  • Verify that the query parameters are valid and supported by the GitLab API.
  • Common errors include authentication failures, invalid project ID, or permission issues. Ensure the API token has the necessary scopes to read project packages.

Links

Discussion