GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves NuGet packages 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 list or filter NuGet packages by name within a project to automate package management or integration workflows.

Use Case Examples

  1. Retrieve all NuGet packages for a given project by specifying the project ID.
  2. Filter NuGet packages by name using the $filter query parameter to find specific packages within a project.

Properties

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

Output

JSON

  • project_id - The ID or URL-encoded path of the GitLab project.
  • $filter - The NuGet package name filter used in the query.
  • packages - The list of NuGet packages retrieved from the specified project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project_id path parameter is correctly set and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project's packages.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If filtering by package name using $filter, ensure the filter string is correctly formatted and matches existing package names.

Links

Discussion