storage.bundle.upload ​
Upload a manifest of static assets into object storage with cache metadata.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-storage |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID for audit scope. |
connection_uuid | uuid | Yes | — | Storage or GCP CloudConnection UUID. |
provider | string | Yes | — | Storage provider, currently gcp for this deployment path. |
project_id | string | No | — | GCP project override. |
bucket | string | Yes | — | Destination bucket. |
prefix | string | No | — | Destination prefix. |
bundle_ref | string | No | — | Internal artifact bundle URI. |
manifest | list | Yes | — | Files to upload with key/source/content metadata. |
delete_stale | boolean | No | — | Delete stale objects under prefix before upload. |
public_read | boolean | No | — | Grant public object read when target policy allows it. |
iam_bindings | list | No | — | Bucket IAM bindings to apply. |
workflow_run_id | string | No | — | Parent DAG run id (engine-stamped). |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Echoed organization UUID. |
connection_uuid | uuid | No | — | Echoed connection UUID. |
provider | string | No | — | Storage provider used. |
bucket | string | No | — | Destination bucket. |
prefix | string | No | — | Destination prefix. |
uploaded_count | integer | No | — | Number of uploaded objects. |
deleted_stale_count | integer | No | — | Number of stale objects deleted. |
total_bytes | integer | No | — | Sum of uploaded bytes. |
objects | list | No | — | Uploaded object metadata without content. |
bucket_url | string | No | — | Provider bucket URL. |
workflow_run_id | string | No | — | Parent DAG run id (engine-stamped). |
failure_reason | string | No | — | Engine failure reason. |
failed_step | json | No | — | Failed DAG step envelope. |
failed_layer | json | No | — | Failed DAG layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | upload | — |
uploading | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | upload | uploading | — |
uploading | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "storage.bundle.upload",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"provider": "value",
"bucket": "value"
}
}