GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves metadata for a specific NuGet package within a GitLab project using the GitLab API. It is useful for scenarios where you need to fetch detailed information about a NuGet package hosted in a GitLab project, such as package versioning, dependencies, or other metadata. For example, it can be used in CI/CD pipelines to verify package details before deployment or in automation workflows to monitor package updates.

Use Case Examples

  1. Fetching metadata for a NuGet package named 'MyNuGetPkg' in a project with ID '12345'.
  2. Automating the retrieval of package metadata to validate package versions during a build process.

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.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Parameters sent in the query string of the request, specifically the NuGet package name.
Path Parameters Parameters included in the URL path, specifically the project ID.

Output

JSON

  • metadata - The metadata information of the specified NuGet package retrieved from the GitLab project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project's package metadata.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • If skipping authentication, ensure the API endpoint is publicly accessible.

Links

Discussion