GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves tokens for a specific cluster agent within a GitLab project. It is useful for managing and accessing cluster agent tokens programmatically, such as for automation or integration tasks involving GitLab's Kubernetes cluster agents.

Use Case Examples

  1. Fetch tokens for a cluster agent in a project to automate deployment processes.
  2. Retrieve cluster agent tokens to audit or manage access credentials.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is 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 key credential

Troubleshooting

  • Ensure the project ID and agent ID are correctly specified to avoid 404 errors.
  • Verify that the API key has sufficient permissions to access cluster agent tokens.
  • Check network connectivity and base URL correctness if requests fail.

Links

Discussion