GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves GitLab CI/CD variables from the GitLab API, specifically from the admin endpoint for CI variables. It is useful for administrators who want to list or manage CI variables across projects or groups in GitLab. For example, an admin can use this node to fetch all CI variables with pagination support to review or audit them.

Use Case Examples

  1. An admin fetching the first page of CI variables with 20 items per page.
  2. Using the node to automate the retrieval of CI variables for backup or synchronization purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Parameters to control pagination of the results, including page number and items per page.

Output

JSON

  • variables - List 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 authentication credential

Troubleshooting

  • Ensure the GitLab API 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 pagination parameters (page, per_page) are valid integers to avoid API errors.

Links

Discussion