GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves NuGet packages by their ID from a specific GitLab project using the GitLab API. It is useful for developers or DevOps engineers who want to programmatically access NuGet package information stored within a GitLab project. 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 package details by specifying the project ID and package ID to verify package versions before deployment.
  2. Automate retrieval of NuGet package metadata for reporting or auditing purposes within a GitLab project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for 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 call, specifically the NuGet package ID to find.
Path Parameters Path parameters for the API call, specifically the project ID or URL-encoded path of the GitLab project.

Output

JSON

  • package - Details of the NuGet package retrieved from the GitLab project.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to access the project's packages.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion