GitLab API icon

GitLab API

Gitlab

Actions1062

Cluster_agents → getApiV4ProjectsIdClusterAgentsAgentIdTokens

AI-generated

Summary

Retrieve a paginated list of tokens associated with a specific cluster agent in a GitLab project by specifying the project ID or URL-encoded path and the agent ID.

Inputs

  • id (required) — The ID or URL-encoded path of the project to retrieve cluster agent tokens from.
  • agent_id (required) — The ID of the cluster agent for which to list tokens.
  • page — Current page number for pagination (optional). Defaults to 1 if not set.
  • per_page — Number of tokens to return per page for pagination (optional). Defaults to 20 if not set.

Output shape

a paginated list of cluster agent tokens

Pagination is supported through 'page' and 'per_page' query parameters. The response returns token details for the specified project and agent. The base URL defaults to https://gitlab.com unless otherwise configured in credentials or baseUrl input.

Links

Discussion