GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdPipelinesPipelineIdVariables

AI-generated

Summary

Retrieve the environment variables for a specific pipeline within a GitLab project using the GitLab API.

Inputs

  • Id (required) — The project ID or URL-encoded path identifying the GitLab project.
  • Pipeline_id (required) — The pipeline ID within the specified project whose variables you want to fetch.
  • Skip Authentication — Optional boolean to skip authentication for this request, default is false.

Output shape

a list of pipeline variables for the specified project and pipeline

The operation performs a GET request to the endpoint /api/v4/projects/{id}/pipelines/{pipeline_id}/variables. The output includes variables defined in that pipeline scope. Authentication is required by default, unless explicitly skipped.

Examples

Example 1: Fetch variables for pipeline 18 of project with ID 11

Set 'Id' to '11' and 'Pipeline_id' to '18', ensure authentication is configured unless 'Skip Authentication' is true.

Links

Discussion