GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves detailed information about a specific Conan package from a GitLab project using the GitLab API. It is useful for developers and DevOps teams who manage Conan packages within GitLab projects and need to programmatically access package metadata or details for automation, auditing, or integration purposes. For example, it can be used to fetch package details during a CI/CD pipeline to verify package versions or to integrate package data into other systems.

Use Case Examples

  1. Fetching a Conan package's metadata by specifying the project ID, package name, version, username, channel, and package reference to automate deployment workflows.
  2. Retrieving package details to audit or monitor package usage within a GitLab project.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The 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 of the Conan package.
  • package_name - The name of the Conan package.
  • package_version - The version of the Conan package.
  • package_username - The username or group associated with the package.
  • package_channel - The channel of the Conan package.
  • conan_package_reference - The unique reference ID of the Conan package.
  • metadata - Additional metadata and details about the Conan package returned by the GitLab API.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters (project ID, package name, version, username, channel, and package reference) are correctly provided and URL-encoded if necessary.
  • Authentication errors may occur if the API key or token is missing, invalid, or lacks sufficient permissions. Verify the API credentials and permissions.
  • Network or connectivity issues with the GitLab instance can cause request failures. Check the baseUrl and network access.
  • If the package is not found, verify that the project ID and package details are correct and that the package exists in the specified GitLab project.

Links

Discussion