GitLab API

GitlabTool

Actions1000

Overview

This node operation performs a search query for Conan packages within a specific GitLab project using the GitLab API. It is useful for developers or DevOps engineers who want to programmatically search for Conan packages in their GitLab projects, for example, to automate package management or integrate package search into CI/CD pipelines.

Use Case Examples

  1. Search for Conan packages in a project by specifying the project ID and a search query string.
  2. Automate retrieval of package information from GitLab to use in deployment scripts.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making 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 Parameters to include in the query string of the request, specifically the search query 'q' to filter Conan packages.
Path Parameters Parameters included in the URL path, specifically the 'id' which is the ID or URL-encoded path of the GitLab project to search within.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project where the Conan packages are searched.
  • q - The search query string used to filter Conan packages.
  • results - The search results containing matching Conan packages returned by the GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID ('id') is correct and accessible with the provided authentication.
  • Verify the search query ('q') is properly formatted and not empty.
  • Check that the base URL is correct for the GitLab instance being accessed.
  • If skipping authentication, ensure the API endpoint allows unauthenticated access, otherwise authentication errors will occur.

Links

Discussion