GitLab API

GitlabTool

Actions1095

Ci_variables → getApiV4ProjectsIdVariables

AI-generated

Summary

Retrieve the list of CI variables for a specific GitLab project by specifying the project's ID or URL-encoded namespace/project name.

Inputs

  • id (required) — The ID of the project or URL-encoded NAMESPACE/PROJECT_NAME of the project owned by the authenticated user.
  • page — Page number to retrieve, for paginated results.
  • per_page — Number of items to return per page in paginated results.

Output shape

a list of CI variable objects associated with the specified project

Supports pagination through 'page' and 'per_page' query parameters. Requires GitLab API authentication unless 'Skip Authentication' is set to true.

Examples

Example 1: Get first page of CI variables

Set 'id' to project ID, leave 'page' and 'per_page' empty or default to 1 and 20 respectively.

Links

Discussion