GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves detailed information about a specific Conan package stored in a GitLab project. It is useful for developers and DevOps teams who manage Conan packages within GitLab's package registry, allowing them to fetch metadata or details about a particular package version, user, and channel.

Use Case Examples

  1. Fetch details of a Conan package version '1.0' named 'my-package' for user 'my-group+my-project' in the 'stable' channel within a specific GitLab project.
  2. Use this operation to verify package metadata or to automate package management workflows in CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, typically a GitLab API key.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, default is GET.
Path Parameters Parameters required in the API path to identify the specific Conan package.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • package_name - Name of the Conan package.
  • package_version - Version of the Conan package.
  • package_username - Username or group/project identifier associated with the package.
  • package_channel - Channel of the Conan package.
  • conan_package_reference - Unique Conan package ID reference.
  • package_details - Detailed information about the Conan package retrieved from GitLab.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • If authentication is enabled, verify that the GitLab API key is valid and has sufficient permissions to access the project and package registry.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common error messages may include 404 Not Found if the package or project does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion