GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows downloading a NuGet package from a specific GitLab project using the GitLab API. It is useful for automating the retrieval of NuGet packages hosted in GitLab projects, which can be integrated into CI/CD pipelines or package management workflows. For example, a developer can use this node to programmatically download a specific version of a NuGet package from their GitLab repository for deployment or testing purposes.

Use Case Examples

  1. Downloading a NuGet package by specifying the project ID and package name to integrate with a build pipeline.
  2. Automating the retrieval of NuGet packages from GitLab for dependency management in a .NET project.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). If true, no authentication is used.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Parameter Schema Defines the required parameters for the API call, including the project ID (path parameter) and the NuGet package name (query parameter).
Request Body Schema Schema for the request body, which is null for this GET operation.
Request Path The API endpoint path template for downloading the NuGet package, including placeholders for project ID and package name.
Query Parameters Collection of query parameters, specifically the NuGet package name to download.
Path Parameters Collection of path parameters, specifically the project ID or URL-encoded path.

Output

JSON

  • package - The downloaded NuGet package data or metadata returned from the API

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to access the project and download packages.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common errors include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion