GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves NuGet packages from a specific GitLab project using the GitLab API v4. It is useful for developers or DevOps engineers who want to programmatically access NuGet package information stored in their GitLab projects. For example, it can be used to automate package version checks or integrate package data into CI/CD pipelines.

Use Case Examples

  1. Fetch NuGet packages for a project to verify available versions before deployment.
  2. Automate retrieval of package metadata for auditing or reporting purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the API request, including the required $filter parameter to specify the NuGet package name.
Path Parameters Path parameters for the API request, including the required project_id parameter to specify the project ID or URL-encoded path.

Output

JSON

  • response - The JSON response containing the NuGet packages data retrieved from the GitLab project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project_id path parameter is correctly set to a valid project ID or URL-encoded path; otherwise, the API request will fail.
  • The $filter query parameter must be provided with the NuGet package name to filter results; missing or incorrect values may result in empty or no data.
  • If authentication is enabled, verify that the GitLab API credential is valid and has sufficient permissions to access the project packages.
  • Common error messages include 401 Unauthorized (invalid or missing authentication), 404 Not Found (invalid project ID or package), and 400 Bad Request (incorrect query parameters). Resolving these involves checking credentials, project existence, and parameter correctness.

Links

Discussion