cluster.status-mgc-kubernetes ​
Return provider status for a Magalu Cloud Kubernetes cluster.
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 diagnostics. |
actor | string | No | — | Caller requesting status. |
timeout_seconds | integer | No | — | Reserved for future polling status reads. |
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. |
actor | string | No | — | Caller requesting status. |
timeout_seconds | integer | No | — | Reserved for future polling status reads. |
get_cluster | json | No | — | Output from mgc.kubernetes.get_cluster. |
provider_status | json | No | — | Normalized provider status object. |
cluster | json | No | — | Provider cluster object. |
status | string | No | — | Normalized lifecycle status. |
phase | string | No | — | Raw or normalized provider phase. |
reachable | boolean | No | — | True when provider status indicates the cluster is reachable. |
checked_at | string | No | — | ISO status 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 | — |
describing_cluster | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | describe_cluster | describing_cluster | — |
describing_cluster | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cluster.status-mgc-kubernetes",
"initial_data": {
"mgc_connection_uuid": "value"
}
}