API Getter for individual pipeline schedule variables
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
- The GitLab API currently allows to create/update/delete pipeline schedule variables, but it does not seem to have a direct way to simply read such a pipeline schedule variable.
- The documentation mentions creating/editing/deleting pipeline schedule variables. https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables
- The documentation about accessing project variables through the API describes a getter. https://docs.gitlab.com/ee/api/project_level_variables.html#get-a-single-variable, but there is no such thing for pipeline schedule variables.
At a technical level, the GitLab API shall allow to read a pipeline schedule variable like this:
curl --request GET --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/29/pipeline_schedules/13/variables/MY_VARIABLE_NAME"
Useless to say, this GET shall work whether <your_access_token> is a user token, or a project token (thinking about #385997)
Edited by 🤖 GitLab Bot 🤖