GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific cluster from a group in GitLab using the GitLab API. It is useful for managing and cleaning up clusters associated with groups in GitLab, especially when a cluster is no longer needed or should be removed for security or organizational reasons. For example, a DevOps engineer might use this node to automate the removal of outdated or unused Kubernetes clusters linked to a GitLab group.

Use Case Examples

  1. Deleting a Kubernetes cluster from a GitLab group to free up resources.
  2. Automating cluster cleanup 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, defaulting to GitLab API key.
baseUrl Base URL for the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant for this operation.
Path Parameters Parameters required in the URL path to identify the group and cluster to delete.

Output

JSON

  • statusCode - HTTP status code returned by the API indicating the result of the delete operation.
  • responseBody - The body of the response from the API, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and cluster ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to delete clusters in the specified group.
  • If authentication is skipped, the request will likely fail unless the GitLab instance allows unauthenticated access for this operation.

Links

Discussion