GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to manage CI variables at the admin level. Specifically, the 'postApiV4AdminCiVariables' operation allows users to create or update CI variables via a POST request to the '/api/v4/admin/ci/variables' endpoint. This is useful for automating the management of CI/CD environment variables in GitLab, such as setting secrets or configuration values that pipelines can use.

Use Case Examples

  1. Automate the creation of CI variables for multiple projects or groups in GitLab.
  2. Update CI variables programmatically as part of a deployment workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Selects the authentication method to use for the API request.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request.
Parameter Schema Defines the schema for the parameters sent in the request body for the 'postApiV4AdminCiVariables' operation.
Request Body Schema Defines the schema for the request body content for the 'postApiV4AdminCiVariables' operation.
Request Path The API endpoint path for the 'postApiV4AdminCiVariables' operation.

Output

JSON

  • response - The JSON response from the GitLab API after creating or updating the CI variable.

Dependencies

  • Requires a GitLab API key credential for authentication.

Troubleshooting

  • Ensure the GitLab API key has sufficient permissions to manage admin CI variables.
  • Verify the baseUrl is correct and accessible.
  • Check that the request body matches the expected schema for creating CI variables.
  • Common errors include authentication failures (invalid or missing API key) and validation errors if required fields in the request body are missing or incorrect.

Links

Discussion