GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves metadata for a specific NuGet package version from a GitLab project using the GitLab API. It is useful for developers or CI/CD pipelines that need to fetch detailed information about NuGet packages hosted in GitLab projects, such as package version details or metadata for dependency management or auditing.

Use Case Examples

  1. Fetch metadata for NuGet package 'MyNuGetPkg' version '1.0.0' in a GitLab project with ID '12345'.
  2. Use in automation workflows to verify package versions before deployment or integration.

Properties

Name Meaning
Skip Authentication Option to bypass authentication when making the API request.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Parameters to specify the NuGet package name and version to retrieve metadata for.
Path Parameters Parameters to specify the project ID or URL-encoded path in GitLab.

Output

JSON

  • id - The ID of the NuGet package metadata.
  • name - The name of the NuGet package.
  • version - The version of the NuGet package.
  • metadata - Additional metadata details about the NuGet package version.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and package name/version are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion