cluster_agents

Create an agent

Creates an agent for the project. You must have the Maintainer or Owner role to use this endpoint.

post/api/v4/projects/{id}/cluster_agents

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Request body

namestring required

The name of the agent

Response

Create an agent

idinteger required
namestring required
created_atstring date-time required
created_by_user_idinteger required
is_receptiveboolean required

Example response

{
  "id": 1,
  "config_project": {
    "id": 1,
    "description": "desc",
    "name": "project1",
    "name_with_namespace": "John Doe / project1",
    "path": "project1",
    "path_with_namespace": "namespace1/project1",
    "created_at": "2020-05-07T04:27:17.016Z"
  },
  "created_by_user_id": 1
}

Changes

No recorded changes to this operation across all 5 revisions of this API.