GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve personal access token associations for the authenticated user. It is useful for scenarios where you need to manage or audit personal access tokens linked to your GitLab account, such as checking token permissions or usage. For example, it can be used to fetch tokens with a minimum access level or paginate through token associations.

Use Case Examples

  1. Fetch all personal access token associations for the authenticated user.
  2. Retrieve personal access tokens with a minimum access level of 30.
  3. Paginate through personal access token associations, 20 items per page.

Properties

Name Meaning
Skip Authentication If true, the node skips using authentication credentials 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 API requests are sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to filter and paginate the personal access token associations.

Output

JSON

  • id - The unique identifier of the personal access token association.
  • name - The name of the personal access token.
  • scopes - The scopes or permissions granted to the personal access token.
  • created_at - The creation timestamp of the personal access token.
  • expires_at - The expiration date of the personal access token, if any.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have sufficient permissions to access personal access tokens.
  • Verify the baseUrl is correct and accessible from the network where the node is running.
  • Check that query parameters like min_access_level, page, and per_page are valid integers and within allowed ranges.
  • Common error messages may include authentication failures, invalid query parameters, or network connectivity issues. Resolving these typically involves verifying credentials, correcting parameter values, and ensuring network access.

Links

Discussion