GitLab API icon

GitLab API

Gitlab

Actions1062

Clusters → postApiV4AdminClustersAdd

AI-generated

Summary

Create a new cluster in the GitLab admin area by sending a POST request to the /api/v4/admin/clusters/add endpoint with the specified cluster details.

Inputs

  • Skip Authentication — Toggle to skip using the configured authentication for this request.
  • Authentication (required) — The GitLab API credential used for authenticating the request. Hidden if Skip Authentication is enabled.
  • baseUrl — The base URL for the GitLab instance, defaulting to https://gitlab.com.
  • Parameter Schema (required) — The payload schema describing the cluster details required for creating the new cluster; must be provided in the request body.

Output shape

a single JSON object representing the newly created cluster.

The operation sends a POST request to /api/v4/admin/clusters/add and returns the response from GitLab's API. Authentication is required unless 'Skip Authentication' is enabled. The baseUrl can be customized but defaults to https://gitlab.com.

Examples

Example 1: Create a new Kubernetes cluster in GitLab's admin area by specifying the required parameters in the request body as per the API schema.

Set Skip Authentication to false, select the GitLab API credential, and provide the cluster details JSON in the request body.

Links

Discussion