GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific variable from a GitLab group using the GitLab API. It is useful for managing group-level variables by removing those that are no longer needed or should be revoked. For example, if a group variable contains sensitive information that should no longer be accessible, this operation can delete it securely.

Use Case Examples

  1. Deleting an obsolete API key stored as a group variable in GitLab.
  2. Removing a configuration variable from a GitLab group to prevent its use in CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key 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.
Path Parameters Parameters required in the URL path to identify the group and variable to delete.

Output

JSON

  • success - Indicates whether the variable was successfully deleted.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the provided group ID and variable key are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to delete group variables.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab.

Links

Discussion