GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation rotates an access token for a specific group in GitLab. It is useful for maintaining security by regenerating tokens without manual intervention, ensuring that access credentials remain up-to-date. For example, an administrator can automate token rotation for group access tokens to comply with security policies.

Use Case Examples

  1. Automate rotation of a GitLab group access token to enhance security.
  2. Regenerate a compromised or expired group access token programmatically.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication for the request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is GET but POST is used for this operation.
Path Parameters Parameters included in the request path to specify the group ID and the token ID to rotate.

Output

JSON

  • response - The JSON response from GitLab API after rotating the access token, typically containing the new token details.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the group ID and token ID are correctly specified; incorrect IDs will cause errors.
  • Authentication failures may occur if the API key is invalid or missing; verify credentials.
  • The GitLab instance URL must be correct; otherwise, the request will fail to reach the server.
  • Check that the user has sufficient permissions to rotate access tokens for the specified group.

Links

Discussion