GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to query NuGet packages for a specific project. It allows users to search for NuGet packages within a GitLab project by specifying parameters such as the project ID, search term, pagination options (skip and take), and whether to include prerelease versions. This is useful for developers or DevOps engineers who want to programmatically retrieve NuGet package information from their GitLab projects, for example, to automate package management or integrate package data into other workflows.

Use Case Examples

  1. Retrieve NuGet packages for a project with ID '123' and search for packages containing 'MyNuGet' in their name.
  2. Fetch the first 10 NuGet packages from a project, skipping the first 5 results.
  3. Include prerelease versions in the NuGet package search results for a project.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method to use for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Collection of query parameters to filter and paginate the NuGet package search results.
Path Parameters Collection of path parameters including the project ID to specify which project's NuGet packages to query.

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.
  • project_id - The ID of the project to which the package belongs.
  • tags - Tags associated with the NuGet package.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Verify that the base URL is correct and points to a valid GitLab instance.
  • Check that the authentication token has sufficient permissions to access the project's NuGet packages.
  • If the API returns errors related to query parameters, validate that the parameters (q, skip, take, prerelease) are correctly formatted and within allowed ranges.

Links

Discussion