GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves metadata for NuGet packages from a specific GitLab project using the GitLab API v4. It is useful for users who want to access package metadata information for NuGet packages hosted within a GitLab project, such as for automation, reporting, or integration purposes.

Use Case Examples

  1. Fetch NuGet package metadata for a project to automate dependency management.
  2. Retrieve package metadata to display package details in a custom dashboard.

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 request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path to identify the GitLab project.

Output

JSON

  • response - The JSON response containing the NuGet package metadata from the GitLab project.

Dependencies

  • Requires GitLab API authentication credentials unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided credentials.
  • If authentication is enabled, verify that the GitLab API token is valid and has sufficient permissions to access project package metadata.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion