GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation performs a search for Conan packages within a specific GitLab project using the GitLab API. It is useful for developers or DevOps engineers who want to query Conan packages stored in a GitLab project's package registry. For example, it can be used to find packages matching a search query within a project by specifying the project ID and search term.

Use Case Examples

  1. Search for Conan packages in project ID '123' with query 'Hello*' to find all packages starting with 'Hello'.
  2. Use the node to automate package discovery in CI/CD pipelines by dynamically searching for package versions.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public projects or testing.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Query parameters for the API request, specifically the search query 'q' to filter Conan packages.
Path Parameters Path parameters for the API request, specifically the 'id' of the 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.
  • response - The JSON response from the GitLab API containing the search results for Conan packages.

Dependencies

  • GitLab API authentication token or API key credential

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.
  • Authentication errors may occur if the API key is missing or invalid; ensure credentials are properly configured.

Links

Discussion