GitLab API icon

GitLab API

Gitlab

Actions917

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, it can be used in automation workflows to clean up sensitive environment variables from a group after a project is completed or when rotating secrets.

Use Case Examples

  1. Deleting a group variable by specifying the group ID and the variable key to ensure sensitive data is removed.
  2. Automating the cleanup of outdated variables in GitLab groups as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters to specify the group ID and the 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, typically empty if successful.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and variable key are correct and exist; otherwise, the API will return an error indicating the resource was not found.
  • Authentication errors may occur if the API key is missing or invalid; verify the credential configuration.
  • Permission errors can happen if the authenticated user does not have sufficient rights to delete variables in the specified group.

Links

Discussion