GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves metadata for a specific NuGet package version within a GitLab project using the GitLab API. It is useful for developers or DevOps engineers who need to programmatically access package details such as version information and metadata stored in a GitLab project repository. For example, it can be used to verify package versions or automate package management workflows.

Use Case Examples

  1. Fetch metadata for NuGet package 'MyNuGetPkg' version '1.0.0' in a project with ID '12345' to verify package details before deployment.
  2. Automate retrieval of NuGet package metadata to integrate with CI/CD pipelines for version validation.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication Type of authentication used, defaulting to GitLab API key authentication. Hidden unless skipping authentication is false.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Parameter Schema Defines required parameters for the API call including project ID, package name, and package version. Hidden from UI.
Request Body Schema Schema for the request body, null for this GET operation.
Request Path API endpoint path template for the request, including placeholders for project ID, package name, and package version.
Query Parameters Collection of query parameters including 'package_name' and 'package_version' to specify the NuGet package details.
Path Parameters Collection of path parameters including 'id' which is the project ID or URL-encoded path.

Output

JSON

  • id - The project ID or URL-encoded path used in the request.
  • package_name - The name of the NuGet package queried.
  • package_version - The version of the NuGet package queried.
  • metadata - The metadata information returned for the specified NuGet package version.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID is correct and URL-encoded if necessary to avoid 404 errors.
  • Verify that the package name and version exist in the specified project to prevent empty or error responses.
  • Check that the GitLab API key credential has sufficient permissions to access the project and package metadata.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the package metadata endpoint.

Links

Discussion