GitLab API icon

GitLab API

Gitlab

Actions917

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 in automation workflows where clusters need to be programmatically removed based on certain conditions or events.

Use Case Examples

  1. Automatically remove a cluster from a group when it is no longer needed.
  2. Clean up clusters 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.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method The HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the group and cluster to delete.

Output

JSON

  • success - Indicates whether the cluster deletion was successful.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and cluster ID are correct and exist in GitLab.
  • Verify that the API key has sufficient permissions to delete clusters.
  • Check the base URL if using a self-hosted GitLab instance.
  • Common error: 404 Not Found - The specified group or cluster does not exist.
  • Common error: 401 Unauthorized - Authentication failed, check API key or token.

Links

Discussion