cluster.delete-mgc-kubernetes ​
Delete a Magalu Cloud Kubernetes cluster by provider cluster id.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-clusters |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID for audit context. |
mgc_connection_uuid | uuid | Yes | — | Magalu CloudConnection UUID used for provider calls. |
provider_cluster_ref | string | No | — | Provider cluster id alias. |
cluster_id | string | No | — | Magalu Kubernetes cluster id. |
cluster_name | string | No | — | Logical cluster name for caller correlation. |
nodepool_ids | json | No | — | Optional node pool ids to delete before deleting the cluster. |
force | boolean | No | — | Treat missing cluster as successful deletion. |
ignore_missing | boolean | No | — | Alias for force. |
actor | string | No | — | Caller initiating deletion. |
timeout_seconds | integer | No | — | Reserved for future deletion polling. |
poll_interval | integer | No | — | Reserved for future deletion polling. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID echoed from input. |
mgc_connection_uuid | uuid | No | — | Magalu CloudConnection UUID used. |
provider_cluster_ref | string | No | — | Provider cluster id alias. |
cluster_id | string | No | — | Magalu Kubernetes cluster id. |
cluster_name | string | No | — | Logical cluster name. |
nodepool_ids | json | No | — | Optional node pool ids to delete before deleting the cluster. |
force | boolean | No | — | Treat missing cluster as successful deletion. |
ignore_missing | boolean | No | — | Alias for force. |
actor | string | No | — | Caller initiating deletion. |
timeout_seconds | integer | No | — | Reserved for future deletion polling. |
poll_interval | integer | No | — | Reserved for future deletion polling. |
describe_cluster | json | No | — | Pre-delete output from mgc.kubernetes.get_cluster. |
delete_nodepools | json | No | — | Outputs from mgc.kubernetes.delete_nodepool fanout. |
delete_cluster | json | No | — | Output from mgc.kubernetes.delete_cluster. |
final_state | string | No | — | Final provider phase when known. |
existed | boolean | No | — | Whether the cluster existed before delete. |
deleted | boolean | No | — | True when provider deletion completed or cluster was absent under force. |
status | string | No | — | Aggregated delete status. |
completed_at | string | No | — | ISO completion timestamp. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | json | No | — | Failed logical step or child workflow. |
failed_layer | json | No | — | Engine failed layer when applicable. |
failed_at_state | json | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | describe_cluster | — |
deleting_cluster | No | No | — | complete | — |
deleting_nodepools | No | No | — | delete_cluster | — |
describing_cluster | No | No | — | delete_nodepools | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | describe_cluster | describing_cluster | — |
describing_cluster | delete_nodepools | deleting_nodepools | — |
deleting_nodepools | delete_cluster | deleting_cluster | — |
deleting_cluster | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cluster.delete-mgc-kubernetes",
"initial_data": {
"mgc_connection_uuid": "value"
}
}