GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → getApiV4AdminCiVariablesKey

AI-generated

Summary

Retrieve a specific GitLab CI variable by its key from the admin API endpoint.

Inputs

  • key (required) — The key of the CI variable to retrieve.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • skipAuthentication — Whether to skip authentication; defaults to false.
  • method — HTTP method to use; defaults to GET and typically GET is used to fetch the variable.

Output shape

a single CI variable object as returned by the GitLab admin API for the specified key

Requires authentication unless skipAuthentication is true. The key is passed as a path parameter. The API invokes GET against /api/v4/admin/ci/variables/{key}, returning details of the CI variable with that key.

Links

Discussion