GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve CI/CD variables from the admin API endpoint. It is useful for administrators who need to manage or audit CI variables across projects or groups in GitLab. For example, it can be used to fetch paginated lists of CI variables for automation or reporting purposes.

Use Case Examples

  1. Fetch the first page of admin CI variables with default pagination.
  2. Customize the number of CI variables retrieved per page by setting the 'per_page' query parameter.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters to control pagination of the results, including 'page' for the current page number and 'per_page' for the number of items per page.

Output

JSON

  • data - Array of CI variables retrieved from the GitLab admin API
  • pagination
    • page - Current page number of the results
    • per_page - Number of items per page in the results
    • total - Total number of CI variables available

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has admin permissions to access the admin CI variables endpoint.
  • Verify the baseUrl is correct and accessible from the n8n instance.
  • Check that the query parameters 'page' and 'per_page' are valid integers if provided.
  • Common error messages may include authentication failures (401 Unauthorized) or permission errors (403 Forbidden) if the API key lacks required scopes.

Links

Discussion