GitLab API

GitlabTool

Actions1000

Overview

This node operation allows creating a new access token for a specific group in GitLab via the GitLab API. It is useful for automating the management of group access tokens, which can be used to authenticate and authorize actions on behalf of the group. For example, it can be used in CI/CD pipelines or automation workflows to generate tokens dynamically for group-level access.

Use Case Examples

  1. Creating a new access token for a GitLab group to enable automated scripts to interact with the group's repositories.
  2. Automating the generation of access tokens for groups to manage permissions programmatically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the group ID for this operation.

Output

JSON

  • id - The ID of the created access token.
  • name - The name of the access token.
  • token - The actual access token string.
  • expires_at - Expiration date of the access token.
  • scopes - Permissions granted by the access token.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID path parameter is correctly provided and valid, as missing or incorrect IDs will cause errors.
  • Authentication errors may occur if the GitLab API key credential is missing or invalid; verify credentials are correctly configured.
  • HTTP method must be POST for this operation; using other methods may result in failure.

Links

Discussion