GitLab API

GitlabTool

Actions1095

Nuget_packages → getApiV4ProjectsIdPackagesNugetDownload*packageNameIndex

AI-generated

Summary

Download a NuGet package index file from a specific GitLab project by its project ID or URL-encoded path and NuGet package name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to target.
  • package_name (required) — The exact name of the NuGet package to download, including version and file extension, e.g., 'mynugetpkg.1.3.0.17.nupkg'.
  • method — HTTP method to use for the request. Defaults to GET.
  • skipAuthentication — Boolean flag to skip authentication; defaults to false (authentication enabled).
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a binary file stream containing the NuGet package index file content

The operation sends an HTTP request to '/api/v4/projects/{id}/packages/nuget/download/*package_name/index' and returns the raw data of the NuGet package index. Authentication is required by default unless explicitly skipped. The response handling assumes the downloaded content is the package index file for the specified NuGet package in the given GitLab project.

Links

Discussion