GitLab API icon

GitLab API

Gitlab

Actions1062

Cluster_agents → postApiV4ProjectsIdClusterAgents

AI-generated

Summary

Create a new cluster agent in a specified GitLab project by sending a POST request to the /api/v4/projects/{id}/cluster_agents endpoint.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project where the cluster agent will be created.
  • postApiV4ProjectsIdClusterAgents (required) — The request body containing the parameters required to create the cluster agent, conforming to the postApiV4ProjectsIdClusterAgents schema.
  • Skip Authentication — Boolean to specify whether to skip authentication; defaults to false.
  • baseUrl — The base URL for GitLab API requests; defaults to https://gitlab.com.

Output shape

a JSON object representing the newly created cluster agent as returned by the GitLab API

The response contains the details of the created cluster agent. Requires the project ID or path and a valid request body. Authentication is required unless explicitly skipped.

Links

Discussion