GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves metadata for a specific NuGet package within a GitLab group using the GitLab API. It is useful for developers or DevOps engineers who need to access package details programmatically, such as verifying package versions or integrating package metadata into CI/CD pipelines.

Use Case Examples

  1. Fetch metadata for a NuGet package named 'MyNuGetPkg' in a GitLab group identified by its ID or full path.
  2. Automate retrieval of NuGet package metadata to monitor package updates within a GitLab group.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Query Parameters Query parameters for the API request, specifically the NuGet package name to retrieve metadata for.
Path Parameters Path parameters for the API request, specifically the group ID or full group path.

Output

JSON

  • id - The group ID or full group path used in the request path.
  • package_name - The NuGet package name queried in the request.
  • metadata - The metadata information returned for the specified NuGet package.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the group ID or full group path is correctly specified in the path parameters to avoid 404 errors.
  • Verify the NuGet package name is correct and exists in the specified group to prevent empty or error responses.
  • Check that the GitLab API credentials are valid and have sufficient permissions to access package metadata.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to package metadata.

Links

Discussion