GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve personal access tokens for the authenticated user. It is useful for scenarios where you need to programmatically access or manage your own personal access tokens in GitLab, such as automating token retrieval for integration or auditing purposes. For example, a user can use this node to fetch their personal access tokens without manually logging into GitLab.

Use Case Examples

  1. Automate retrieval of personal access tokens for CI/CD pipelines.
  2. Audit personal access tokens to ensure security compliance.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication credentials for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Hidden property for the parameter schema of the operation, not user-configurable.
Request Body Schema Hidden property for the request body schema of the operation, not user-configurable.
Request Path The API endpoint path for retrieving the personal access tokens of the authenticated user, fixed to '/api/v4/personal_access_tokens/self'.

Output

JSON

  • id - The unique identifier of the personal access token.
  • name - The name of the personal access token.
  • scopes - The scopes or permissions granted by the personal access token.
  • created_at - The creation timestamp of the personal access token.
  • expires_at - The expiration date of the personal access token.
  • revoked - Indicates whether the personal access token has been revoked.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have the necessary permissions to access personal access tokens.
  • If the node returns authentication errors, verify that the 'Skip Authentication' option is not enabled unless intended.
  • Check the baseUrl property to ensure it points to the correct GitLab instance URL.
  • API rate limits or permission restrictions on the GitLab account may cause errors; review GitLab API documentation for limits and required scopes.

Links

Discussion