GitLab API

GitlabTool

Actions905

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 clusters are no longer needed or need to 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 cluster from a GitLab group by specifying the group ID and cluster ID.
  2. Automating cluster cleanup in GitLab groups as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET but set to DELETE for this operation.
Path Parameters The path parameters required for the API request, including the group ID and the cluster ID to delete.

Output

JSON

  • success - Indicates whether the cluster deletion was successful.
  • statusCode - HTTP status code returned by the API.
  • message - Additional message or details about the deletion operation.

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, ensure the GitLab instance allows unauthenticated requests for this operation, otherwise it will fail.

Links

Discussion