GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves details of a specific package within a GitLab project using the GitLab API. It is useful for scenarios where you need to fetch information about a particular package by specifying the project ID or URL-encoded path and the package ID. For example, it can be used to get metadata or status of a package stored in a GitLab project repository.

Use Case Examples

  1. Fetch details of a package with ID 123 in project 'my-group/my-project' to monitor package status or metadata.
  2. Retrieve package information to integrate with a CI/CD pipeline for deployment or auditing.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public projects or testing.
Authentication Type of authentication used for the request, defaulting to 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.
Path Parameters Parameters to specify the project ID or URL-encoded path and the package ID to identify the package to retrieve.

Output

JSON

  • id - The unique identifier of the package.
  • name - The name of the package.
  • version - The version of the package.
  • package_type - The type of the package (e.g., npm, maven).
  • created_at - Timestamp when the package was created.
  • updated_at - Timestamp when the package was last updated.
  • project_id - The ID of the project to which the package belongs.
  • package_files - List of files associated with the package.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and package.
  • If skipping authentication, confirm that the project and package are publicly accessible.
  • Common error messages include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion