GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific access token for a project in GitLab using the GitLab API. It is useful for scenarios where you need to fetch details about a particular project access token by providing the project ID and the token ID. For example, it can be used to verify or audit access tokens associated with a project.

Use Case Examples

  1. Fetch details of a specific access token for a project by providing the project ID and token ID.
  2. Audit project access tokens to ensure proper permissions and usage.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path including project ID and token ID.

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 date 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 to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or token does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion