cluster_agents

List all agent tokens

Lists all active tokens for an agent. You must have the Developer, Maintainer, or Owner role to use this endpoint.

get/api/v4/projects/{id}/cluster_agents/{agent_id}/tokens

Request

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

Path parameters

idstring required

The ID or URL-encoded path of the project

agent_idinteger required

The ID of an agent

Query parameters

pageinteger

Current page number

per_pageinteger

Number of items per page

Response

List all agent tokens

idinteger required
namestring required
descriptionstring required
agent_idinteger required
statusstring required
created_atstring date-time required
created_by_user_idinteger required

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.