GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve NuGet packages for a specified group using the API endpoint `/api/v4/groups/{id}/-/packages/nuget/query`. It is useful for automating the retrieval of package information within GitLab groups, such as searching for specific NuGet packages, paginating results, and including prerelease versions. Practical applications include integrating GitLab package data into CI/CD pipelines or package management workflows.

Use Case Examples

  1. Retrieve NuGet packages for a group by specifying the group ID or path.
  2. Search for NuGet packages within a group using a search term.
  3. Paginate through NuGet package results by skipping a number of entries and limiting the number returned.
  4. Include prerelease versions of NuGet packages in the results.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance to which the API requests are sent.
Method HTTP method used for the API request, default is GET.
Parameter Schema Defines the parameters for the API request including group ID/path, search term, pagination, and prerelease inclusion.
Query Parameters Collection of query parameters to customize the API request such as search term (q), skip, take, and prerelease flags.
Path Parameters Collection of path parameters including the group ID or full group path to specify the target group for the NuGet packages.

Output

JSON

  • id - The unique identifier of the NuGet package.
  • name - The name of the NuGet package.
  • version - The version of the NuGet package.
  • description - Description of the NuGet package.
  • created_at - Timestamp when the package was created.
  • updated_at - Timestamp when the package was last updated.
  • prerelease - Boolean indicating if the package version is a prerelease.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or full group path is correctly specified to avoid 404 errors.
  • Verify that the API key credential has sufficient permissions to access group packages.
  • Check network connectivity and base URL correctness if requests fail to reach the GitLab instance.
  • If authentication is skipped, ensure the endpoint allows unauthenticated access or the request will fail.

Links

Discussion