GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve NuGet package information for a specific project using the API endpoint `/api/v4/projects/{id}/packages/nuget/v2`. It is useful for automating the retrieval of NuGet package data from GitLab projects, which can be beneficial in CI/CD pipelines, project management, or package auditing scenarios.

Use Case Examples

  1. Fetch NuGet packages for a project by specifying the project ID to automate package management workflows.
  2. Integrate with GitLab to monitor NuGet package versions used in projects for compliance and updates.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Defines the path parameter 'id' which is the ID or URL-encoded path of the project to query.
Request Body Schema Schema for the request body, not used in this GET operation.
Request Path The API endpoint path template used for the request, with a placeholder for the project ID.
Path Parameters Collection of path parameters, specifically the 'id' of the project whose NuGet packages are being retrieved.

Output

JSON

  • response - The JSON response from the GitLab API containing NuGet package information for the specified project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and URL-encoded if necessary.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the project packages.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the project ID is invalid or inaccessible, and 401 Unauthorized if authentication fails.

Links

Discussion