GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific CI variable from the GitLab API using the variable's key. It is useful for administrators who need to access or manage CI/CD variables in GitLab projects or groups. For example, an admin can use this node to fetch the value or details of a CI variable by specifying its key.

Use Case Examples

  1. Fetching a CI variable by its key to verify its value before a deployment.
  2. Retrieving CI variable details to audit or update configurations in GitLab projects.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the 'key' of the CI variable to retrieve.

Output

JSON

  • key - The key of the CI variable requested.
  • value - The value of the CI variable.
  • variable_type - The type of the CI variable.
  • protected - Indicates if the variable is protected.
  • masked - Indicates if the variable is masked.
  • environment_scope - The environment scope where the variable is applied.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the 'key' path parameter is correctly set; missing or incorrect keys will result in errors.
  • Authentication errors may occur if the GitLab API key is invalid or missing; verify credentials.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion