cluster_agents
Create an agent token
Creates a token for an agent. You must have the Maintainer or Owner role to use this endpoint. An agent can have only two active tokens at one time.
post/api/v4/projects/{id}/cluster_agents/{agent_id}/tokens
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
agent_idinteger required
The ID of an agent
Request body
Response
Create an agent token
Example response
{
"id": 1,
"agent_id": 1,
"created_by_user_id": 1
}Changes
No recorded changes to this operation across all 5 revisions of this API.