GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve deploy tokens using the API v4 endpoint. It is useful for automating the management and retrieval of deploy tokens in GitLab projects or groups, which are used for authentication in deployment processes. For example, it can be used to list deploy tokens with pagination and filter them by active status.

Use Case Examples

  1. Retrieve a list of deploy tokens with pagination to manage deployment credentials.
  2. Filter deploy tokens by active status to audit or clean up tokens.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the request.
Authentication The authentication method used for the API request, defaulting to GitLab API key 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.
Query Parameters Optional query parameters to control pagination and filtering of deploy tokens.

Output

JSON

  • response - The JSON response from the GitLab API containing the list of deploy tokens and their details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access deploy tokens.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • Check that query parameters are correctly formatted, especially boolean values for filtering active tokens.
  • Common error messages may include authentication failures (401 Unauthorized) or permission errors (403 Forbidden), which require checking API key validity and permissions.

Links

Discussion