GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves cluster agents associated with a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to manage or monitor cluster agents linked to a project, such as in DevOps workflows or infrastructure automation.

Use Case Examples

  1. Fetch all cluster agents for a given project ID to display in a dashboard.
  2. Automate the retrieval of cluster agents to integrate with other CI/CD tools.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Path parameters specifying the project ID or URL-encoded path.

Output

JSON

  • cluster_agents - List of cluster agents associated with the specified project.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access cluster agents.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion