GitLab API icon

GitLab API

Gitlab

Actions917

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, enabling them to find packages by name or pattern matching. For example, it can be used to automate package discovery in CI/CD pipelines or to integrate package search functionality into custom workflows.

Use Case Examples

  1. Searching for Conan packages in a project by specifying the project ID and a search query string.
  2. Automating retrieval of package information for dependency management or auditing.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
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 Query parameters for the API request, specifically the search query 'q' to filter Conan packages by name or pattern.
Path Parameters Path parameters for the API request, specifically the 'id' which is the ID or URL-encoded path of the GitLab project.

Output

JSON

  • id - The ID of the project in GitLab.
  • q - The search query string used to filter Conan packages.
  • results - The list of Conan packages matching the search query within the specified project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID ('id') is correct and accessible with the provided authentication credentials.
  • Verify that the search query ('q') is properly formatted and not empty.
  • Check that the base URL is correct and points to a valid GitLab instance.
  • Authentication errors may occur if the API key is missing, invalid, or lacks sufficient permissions.

Links

Discussion