ci_variables
List all project variables
Lists all variables for a project. Use the page and per_page pagination parameters to control the pagination of results.
get/api/v4/projects/{id}/variables
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of the project owned by the authenticated user
Query parameters
pageinteger
Current page number
per_pageinteger
Number of items per page
Response
List all project variables
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.