GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves detailed information about a specific Conan package from the GitLab API. It is useful for developers and DevOps teams who manage Conan packages in GitLab and need to fetch package metadata or verify package details programmatically. For example, it can be used to automate package version checks or integrate package data into CI/CD pipelines.

Use Case Examples

  1. Fetch details of a Conan package named 'my-package' version '1.0' under the user 'my-group+my-project' and channel 'stable' to verify its metadata before deployment.
  2. Automate retrieval of Conan package information to display in a custom dashboard or report.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters required in the API request path to specify the Conan package uniquely.

Output

JSON

  • id - Unique identifier of the Conan package.
  • name - Name of the Conan package.
  • version - Version of the Conan package.
  • username - Username or group/project owning the package.
  • channel - Channel of the Conan package.
  • reference - Conan package reference ID.
  • metadata - Additional metadata and details about the Conan package.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (package_name, package_version, package_username, package_channel, conan_package_reference) are provided and correctly formatted.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the package data.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the package does not exist or 401 Unauthorized if authentication fails. Verify parameters and credentials accordingly.

Links

Discussion