GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves metadata for a specific NuGet package version within a GitLab group. It is useful for developers or DevOps engineers who need to access detailed information about NuGet packages hosted in GitLab groups, such as package name, version, and associated metadata. For example, it can be used to automate package version checks or integrate package metadata retrieval into CI/CD pipelines.

Use Case Examples

  1. Retrieve metadata for NuGet package 'MyNuGetPkg' version '1.0.0' in a specific GitLab group by providing the group ID or full group path.
  2. Automate validation of NuGet package versions before deployment by fetching package metadata from GitLab.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Query Parameters Query parameters for the API request, including package_name and package_version to specify the NuGet package and its version.
Path Parameters Path parameters for the API request, including id which is the group ID or full group path.

Output

JSON

  • id - The group ID or full group path used in the request path.
  • package_name - The NuGet package name specified in the query parameters.
  • package_version - The NuGet package version specified in the query parameters.
  • metadata - The metadata information returned for the specified NuGet package version.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or full group path is correct and accessible with the provided authentication.
  • Verify that the package_name and package_version query parameters are correctly specified and exist in the GitLab group.
  • Check that the GitLab API key credential is valid and has sufficient permissions to access package metadata.
  • Common error messages may include 401 Unauthorized (invalid or missing authentication), 404 Not Found (incorrect group ID or package details), and 400 Bad Request (missing required parameters). Resolving these involves correcting the input parameters and verifying authentication credentials.

Links

Discussion