GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves NuGet packages from a specified GitLab group using the GitLab API. It allows users to search for packages within a group, control pagination by skipping a number of results and limiting the number of results returned, and optionally include prerelease versions. This is useful for developers or DevOps teams managing package dependencies in GitLab groups, enabling them to query and filter NuGet packages programmatically.

Use Case Examples

  1. A developer wants to find all NuGet packages related to 'MyNuGet' in a specific GitLab group to check available versions.
  2. A DevOps engineer needs to list the first 20 NuGet packages in a group, skipping the first 10, to automate package management tasks.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false. Defaults to GitLab API key.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method HTTP method to use for the request. Defaults to GET.
Query Parameters Collection of query parameters to filter and paginate the NuGet packages.
Path Parameters Collection of path parameters for the API request.

Output

JSON

  • id - Unique identifier of the NuGet package.
  • name - Name of the NuGet package.
  • version - 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 is a prerelease version.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or full group path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the group's packages.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If no results are returned, verify the query parameters such as 'q' for search term and 'prerelease' flag are set correctly.

Links

Discussion