ci_variables

Retrieve instance variable details

Retrieves details of a specified instance-level variable.

get/api/v4/admin/ci/variables/{key}

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

keystring required

The key of a variable

Response

Retrieve instance variable details

variable_typestring required
keystring required
valuestring required
hiddenboolean
protectedboolean
maskedboolean
rawboolean
environment_scopestring
descriptionstring

Example response

{
  "variable_type": "env_var",
  "key": "TEST_VARIABLE_1",
  "value": "TEST_1",
  "environment_scope": "*",
  "description": "This variable is being used for ..."
}

Changes

No recorded changes to this operation across all 5 revisions of this API.