GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves variables for a specific group in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of group-level CI/CD variables in GitLab projects. For example, it can be used to fetch environment variables for a group to dynamically configure CI pipelines or audit variable settings.

Use Case Examples

  1. Fetch all CI variables for a GitLab group by specifying the group ID.
  2. Paginate through group variables by setting page and per_page query parameters to handle large sets of variables.

Properties

Name Meaning
Skip Authentication Whether 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.
Query Parameters Optional query parameters for pagination.
Path Parameters Path parameters for the API request.

Output

JSON

  • variables - Array of variables associated with the specified GitLab group.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to read group variables.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion