Skip to content

Retrieve a variable for a pipeline schedule

GET
/api/v4/projects/{id}/pipeline_schedules/{pipeline_schedule_id}/variables/{key}

Retrieves a specified variable for a pipeline schedule.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
18
pipeline_schedule_id
required
integer

The pipeline schedule id

Example
13
key
required
string

The key of the variable

Example
NEW_VARIABLE

OK

Media type application/json
object
variable_type
string
key
string
value
string
hidden
boolean
protected
boolean
masked
boolean
raw
boolean
environment_scope
string
description
string
Example
{
"variable_type": "env_var",
"key": "TEST_VARIABLE_1",
"value": "TEST_1",
"environment_scope": "*",
"description": "This variable is being used for ..."
}

Bad Request

Unauthorized

Forbidden

Not found