cluster.refresh-status ​
Refresh and persist the normalized status snapshot for a logical cluster.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-clusters |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation. |
cluster_uuid | uuid | Yes | — | Logical cluster UUID to refresh. |
connection_uuid | uuid | No | — | Kubernetes CloudConnection UUID override. |
provider | string | No | — | Provider key override used when the Cluster row is incomplete. |
cluster_kind | string | No | — | Cluster kind override used when the Cluster row is incomplete. |
provider_connection_uuid | uuid | No | — | Provider CloudConnection UUID override used when the Cluster row is incomplete. |
provider_cluster_ref | string | No | — | Provider-side cluster identifier override. |
region | string | No | — | Primary provider region or location override. |
provider_config | json | No | — | Provider-specific status inputs override. |
node_config | json | No | — | Provider-specific node pool or nodegroup identifiers override. |
include_snapshot | boolean | No | — | Whether to collect k8s.cluster.snapshot. |
namespaces | json | No | — | Optional namespaces filter for snapshot. |
kinds | json | No | — | Optional resource kinds filter for snapshot. |
label_selector | string | No | — | Optional label selector for snapshot. |
actor | string | No | — | Caller or scheduler identity. |
timeout_seconds | integer | No | — | Provider status timeout. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID echoed from input. |
cluster_uuid | uuid | No | — | Logical cluster UUID. |
connection_uuid | uuid | No | — | Kubernetes CloudConnection UUID. |
provider | string | No | — | Provider key override used when the Cluster row is incomplete. |
cluster_kind | string | No | — | Cluster kind override used when the Cluster row is incomplete. |
provider_connection_uuid | uuid | No | — | Provider CloudConnection UUID override used when the Cluster row is incomplete. |
provider_cluster_ref | string | No | — | Provider-side cluster identifier override. |
region | string | No | — | Primary provider region or location override. |
provider_config | json | No | — | Provider-specific status inputs override. |
node_config | json | No | — | Provider-specific node pool or nodegroup identifiers override. |
include_snapshot | boolean | No | — | Whether to collect k8s.cluster.snapshot. |
namespaces | json | No | — | Optional namespaces filter for snapshot. |
kinds | json | No | — | Optional resource kinds filter for snapshot. |
label_selector | string | No | — | Optional label selector for snapshot. |
timeout_seconds | integer | No | — | Provider status timeout. |
cluster | json | No | — | Output from data.cluster.get. |
status_result | json | No | — | Output from cluster.status. |
cluster_snapshot | json | No | — | Output from k8s.cluster.snapshot when requested. |
status | string | No | — | Persisted normalized status. |
phase | string | No | — | Persisted provider phase. |
reachable | boolean | No | — | Persisted Kubernetes reachability flag. |
server_version | string | No | — | Persisted Kubernetes API server version. |
snapshot_at | string | No | — | Snapshot timestamp when collected. |
persisted | boolean | No | — | True when status was persisted. |
refreshed_at | string | No | — | ISO refresh timestamp. |
actor | string | No | — | Caller or scheduler identity. |
failure_reason | string | No | — | Human-readable failure reason. |
failure_type | string | No | — | Failure category. |
failed_action | string | No | — | Action that failed. |
failed_step | json | No | — | Failed logical step or child workflow. |
failed_layer | json | No | — | Engine failed layer when applicable. |
failed_at_state | string | 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 | — | load_cluster | — |
loading_cluster | No | No | — | read_status | — |
persisting_status | No | No | — | complete | — |
reading_status | No | No | — | persist_status | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | load_cluster | loading_cluster | — |
loading_cluster | read_status | reading_status | — |
reading_status | persist_status | persisting_status | — |
persisting_status | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cluster.refresh-status",
"initial_data": {
"organization_uuid": "value",
"cluster_uuid": "value"
}
}