GitLab API

GitlabTool

Actions905

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. Fetching the first page of admin CI variables with 20 items per page.
  2. Customizing the number of items per page to retrieve more or fewer variables in a single request.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for 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 The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional query parameters to control pagination of the results, including page number and items per page.

Output

JSON

  • response - The JSON response from the GitLab API containing the list of admin CI variables, potentially paginated.

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 network where the node runs.
  • Check that pagination parameters (page, per_page) are valid integers to avoid API errors.

Links

Discussion