GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to add new clusters via the admin endpoint. It is useful for administrators who want to programmatically manage and add clusters to their GitLab instance, automating cluster management tasks.

Use Case Examples

  1. An admin automates adding Kubernetes clusters to GitLab for CI/CD integration.
  2. A DevOps engineer integrates cluster management into their infrastructure as code pipeline using this node.

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 key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method to use for the API request, defaulting to GET but supporting POST, PUT, DELETE, HEAD, and PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body when adding a cluster.
Request Body Schema Defines the schema for the request body content when adding a cluster.
Request Path The API endpoint path for adding a cluster, fixed to '/api/v4/admin/clusters/add'.

Output

JSON

  • response - The JSON response from the GitLab API after attempting to add a cluster.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has admin permissions to add clusters.
  • Verify the baseUrl is correctly set to the target GitLab instance URL.
  • Check that the request body matches the expected schema for adding clusters to avoid validation errors.

Links

Discussion