GitLab API icon

GitLab API

Gitlab

Actions1062

Cluster_agents → getApiV4ProjectsIdClusterAgentsAgentIdTokensTokenId

AI-generated

Summary

Retrieve details of a specific agent token associated with a cluster agent in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to which the cluster agent belongs.
  • agent_id (required) — The ID of the cluster agent within the specified project.
  • token_id (required) — The ID of the agent token to retrieve information for.
  • baseUrl — Optional base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • method — HTTP method to use; defaults to GET.
  • skipAuthentication — If set to true, skips using GitLab authentication credentials.

Output shape

a single JSON object representing the specified cluster agent token's details

Requires all three path parameters (project ID, agent ID, and token ID) to identify the token uniquely. Returns token details as defined by the GitLab API v4 endpoint /projects/{id}/cluster_agents/{agent_id}/tokens/{token_id}.

Links

Discussion