GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific project access token from a GitLab project using the GitLab API. It is useful for scenarios where you need to fetch details about a particular access token associated with a project, such as for auditing or managing project permissions.

Use Case Examples

  1. Fetch details of a specific access token for a project to verify its permissions or expiration.
  2. Retrieve a project access token to check its status or usage before revoking or renewing it.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET.
Path Parameters Parameters required in the request path to identify the project and the specific access token.

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 date of the access token.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and token ID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project tokens.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or token does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion