GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific access token for a group in GitLab by its token ID. It is useful for scenarios where you need to fetch details about a particular group access token, such as verifying token permissions or auditing token usage.

Use Case Examples

  1. Fetch details of a specific access token for a GitLab group to verify its permissions.
  2. Retrieve information about a group access token to audit or manage group access.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters to specify the group ID and the token ID for the access token to retrieve.

Output

JSON

  • id - The ID of the access token.
  • name - The name of the access token.
  • scopes - The scopes or permissions granted by the access token.
  • created_at - The creation timestamp of the access token.
  • expires_at - The expiration timestamp of the access token.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and token ID path parameters are correctly set and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access group access tokens.
  • Common error messages may include 404 Not Found if the token or group does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion