GitLab API

GitlabTool

Actions1095

Cluster_agents → getApiV4ProjectsIdClusterAgentsAgentIdTokens

AI-generated

Summary

Retrieves a paginated list of authentication tokens for a specific GitLab cluster agent within a project.

Inputs

  • skipAuthentication — If true, skips authentication using the configured GitLab API credential.
  • authentication (required) — Authentication method. Defaults to 'gitlabApi'.
  • baseUrl — The GitLab instance URL. Defaults to 'https://gitlab.com'.
  • id (required) — The ID or URL-encoded path of the project.
  • agent_id (required) — The ID of the cluster agent.
  • page — The current page number for pagination. Defaults to 1.
  • per_page — Number of items per page for pagination. Defaults to 20.

Output shape

a list of items, each containing the list of agent tokens for the specified agent

Paginated results are returned as multiple workflow items.

Examples

Example 1: List all tokens for agent ID 42 in the 'my-project' project

Path Parameters: id='my-project', agent_id='42'

Example 2: Get the second page of tokens with 50 items per page

Path Parameters: id='my-project', agent_id='42'; Query: page='2', per_page='50'

Links

Discussion