GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves deploy tokens for a specific group in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of deploy tokens associated with groups, which can be used for deployment automation and access control in CI/CD pipelines.

Use Case Examples

  1. Fetch deploy tokens for a group by specifying the group ID to automate deployment processes.
  2. Paginate through deploy tokens by setting page and per_page query parameters to manage large sets of tokens.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
Authentication Type of authentication used, default is GitLab API key authentication.
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 to control pagination and filtering of deploy tokens.
Path Parameters Path parameters to specify the group ID for which deploy tokens are retrieved.

Output

JSON

  • id - Unique identifier of the deploy token
  • name - Name of the deploy token
  • username - Username associated with the deploy token
  • expires_at - Expiration date of the deploy token
  • scopes - Permissions granted by the deploy token
  • created_at - Creation timestamp of the deploy token
  • active - Indicates if the deploy token is active

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access group deploy tokens.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters (page, per_page) are used, ensure they are valid integers to avoid request errors.

Links

Discussion