GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific cluster from a project in GitLab using the GitLab API. It is useful for managing and cleaning up clusters associated with projects, 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 Kubernetes clusters from their GitLab projects.

Use Case Examples

  1. Deleting a cluster from a project by specifying the project ID and cluster ID to keep the project environment clean.
  2. Automating cluster management by removing clusters that are no longer in use.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, default is GitLab API key authentication.
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 required in the URL path to identify the project and cluster to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the GitLab API after attempting to delete the cluster

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and cluster ID are correct and exist in GitLab to avoid 404 Not Found errors.
  • Check that the API key has sufficient permissions to delete clusters in the project to avoid 403 Forbidden errors.
  • If skipping authentication, verify that the endpoint supports unauthenticated requests, otherwise the request will fail.

Links

Discussion