GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves NuGet packages from a specific GitLab project using the GitLab API v4. It is useful for developers or DevOps engineers who want to programmatically access NuGet package information stored in their GitLab projects. For example, it can be used to automate package version checks or integrate package data into CI/CD pipelines.

Use Case Examples

  1. Fetch NuGet packages for a project to verify available versions before deployment.
  2. Automate retrieval of package metadata for reporting or auditing purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the API request, including the $filter parameter to specify the NuGet package name.
Path Parameters Path parameters for the API request, including the project_id which identifies the GitLab project.

Output

JSON

  • response - The JSON response from the GitLab API containing NuGet package details for the specified project.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project_id path parameter is correctly set and URL-encoded if necessary.
  • Verify that the $filter query parameter is provided to specify the NuGet package name, as it is required.
  • Check that the GitLab API authentication token is valid and has sufficient permissions to access the project's packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to package data, otherwise the request will fail.

Links

Discussion