List all instance-level variables

GET /admin/ci/variables

List all instance-level variables

Query parameters

  • page integer(int32)

    Current page number

    Default value is 1.

  • per_page integer(int32)

    Number of items per page

    Default value is 20.

Responses

  • 200 application/json

    List all instance-level variables

    Hide response attributes Show response attributes object
    • variable_type string
    • key string
    • value string
    • protected boolean
    • masked boolean
    • raw boolean
    • environment_scope string
GET /admin/ci/variables
curl \
 --request GET 'https://www.gitlab.com/api/v4/admin/ci/variables' \
 --header "Private-Token: $API_KEY"
Response examples (200)
{
  "variable_type": "env_var",
  "key": "TEST_VARIABLE_1",
  "value": "TEST_1",
  "protected": true,
  "masked": true,
  "raw": true,
  "environment_scope": "*"
}