GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific variable from a GitLab project using the GitLab API. It is useful for managing project variables by removing those that are no longer needed or relevant. For example, a user can delete environment-specific variables or outdated keys from their GitLab project to maintain clean and secure configurations.

Use Case Examples

  1. Deleting a project variable by specifying the project ID and variable key.
  2. Removing an environment-scoped variable from a GitLab project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to DELETE for this operation.
Query Parameters Optional query parameters for the request, including environment scope filter.
Path Parameters Required path parameters identifying the project and variable key to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body from the API after attempting to delete the variable.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the project ID and variable key are correct and exist in the GitLab project.
  • Verify that the authentication credentials have sufficient permissions to delete project variables.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • If filtering by environment scope, ensure the filter value matches the variable's environment scope exactly.

Links

Discussion