GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves details of a specific package within a GitLab project using the GitLab API v4. It is useful for scenarios where you need to fetch metadata or information about a particular package stored in a project repository on GitLab, such as package version, status, or other attributes.

Use Case Examples

  1. Fetch details of a package with ID 123 in project 'my-project' to display package information in a dashboard.
  2. Retrieve package metadata to verify package existence before deployment.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the API request.
Authentication Selects the authentication method to use for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters used in the API request path to specify the project and package IDs.

Output

JSON

  • id - The unique identifier of the package.
  • name - The name of the package.
  • version - The version of the package.
  • status - The 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 key credential for authentication unless skipping authentication is enabled.

Troubleshooting

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

Links

Discussion