GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → getApiV4GroupsIdVariablesKey

AI-generated

Summary

Retrieve a specific CI variable from a GitLab group by its key using the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group owned by the authenticated user.
  • key (required) — The key (name) of the CI variable to retrieve from the group.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • skipAuthentication — When true, disables authentication.

Output shape

a single JSON object representing the CI variable identified by the specified key within the specified group.

The operation sends a GET request to the endpoint /api/v4/groups/{id}/variables/{key} on the specified or default GitLab base URL. Authentication uses the 'gitlabApi' credential unless skipped. If successful, the output includes details of the variable such as key, value, and other metadata.

Links

Discussion