GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves metadata for a specific NuGet package within a GitLab project using the GitLab API v4. It is useful for developers or DevOps engineers who need to access package details programmatically, such as version information or package metadata, directly from a GitLab project repository.

Use Case Examples

  1. Fetching metadata for a NuGet package named 'MyNuGetPkg' in a project with ID '12345' to automate package management workflows.
  2. Integrating GitLab package metadata retrieval into CI/CD pipelines to verify package versions before deployment.

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 Query parameters for the request, specifically the NuGet package name to retrieve metadata for.
Path Parameters Path parameters for the request, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • package_name - The name of the NuGet package for which metadata is retrieved.
  • metadata - The metadata details of the specified NuGet package retrieved from the GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project and package metadata.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common error messages include 404 Not Found if the project or package does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion