ci_variables

Retrieve details of a group variable

Retrieves details of a specified group variable. If there are multiple variables with the same key, use filter to select the correct environment_scope.

get/api/v4/groups/{id}/variables/{key}

Request

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

Path parameters

idstring required

The ID of a group or URL-encoded path of the group owned by the authenticated user

keystring required

The key of the variable

Response

Retrieve details of a group variable

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.