GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves tokens for a specific cluster agent within a GitLab project. It is useful for managing and accessing authentication tokens associated with cluster agents in GitLab projects, enabling automation or integration workflows that require these tokens.

Use Case Examples

  1. Fetching tokens for a cluster agent to automate deployment processes.
  2. Listing tokens to audit or manage access for cluster agents in a project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Required path parameters identifying the project and cluster agent.

Output

JSON

  • tokens - List of tokens associated with the specified cluster agent in the project.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and agent ID are correctly specified to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access cluster agent tokens.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion