pipelines

List all pipeline variables

Lists all pipeline variables for a specified pipeline.

get/api/v4/projects/{id}/pipelines/{pipeline_id}/variables

Request

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

Path parameters

idstring required

The project ID or URL-encoded path

pipeline_idinteger required

The pipeline ID

Response

List all pipeline variables

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.