GitLab API

GitlabTool

Actions1000

Overview

This node operation fetches metadata for NuGet packages within a specific GitLab group using the GitLab API. It is useful for users who want to retrieve package metadata information from a group's NuGet package registry, such as for auditing, reporting, or integration purposes.

Use Case Examples

  1. Retrieve NuGet package metadata for a group with ID 123 to analyze package details.
  2. Fetch metadata to automate package version checks within a CI/CD pipeline.

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 HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters to be included in the request path, specifically the group ID or full group path to identify the target group.

Output

JSON

  • statusCode - HTTP status code returned by the API request.
  • headers - HTTP headers returned by the API request.
  • body - The JSON response body containing the NuGet package metadata for the specified group.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the group ID or full group path provided in the path parameters is correct and accessible with the provided authentication.
  • If authentication is skipped, verify that the GitLab instance allows unauthenticated access to the NuGet package metadata endpoint.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (incorrect group ID or path), and 403 Forbidden (insufficient permissions). Resolving these involves verifying credentials, permissions, and parameter correctness.

Links

Discussion