GitLab API

GitlabTool

Actions1095

Nuget_packages → getApiV4ProjectsIdPackagesNugetMetadata*packageName*packageVersion

AI-generated

Summary

Retrieve metadata for a specific NuGet package and version from a GitLab project's package registry using the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to fetch the NuGet package metadata.
  • package_name (required) — The name of the NuGet package to retrieve metadata for.
  • package_version (required) — The version of the NuGet package to retrieve metadata for.
  • skipAuthentication — Whether to skip authenticating the request (defaults to false, meaning authentication is applied).
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • method — HTTP method to use for the request; defaults to GET.

Output shape

a JSON object containing the metadata of the specified NuGet package version from the GitLab project registry

The response shape depends on the GitLab API v4's package metadata structure for NuGet packages. Authentication is required unless "Skip Authentication" is enabled. The request path includes the project ID and package identifiers as path and query parameters, respectively.

Examples

Example 1: Get metadata for the NuGet package 'MyNuGetPkg' version '1.0.0' in project with ID '1234' on GitLab.com.

Set 'id' to '1234', 'package_name' to 'MyNuGetPkg', and 'package_version' to '1.0.0'. Use default 'baseUrl' and 'method' (GET), and ensure authentication is enabled.

Links

Discussion