gcp.storage.object.upload ​
Upload one object to GCS with cache and content metadata.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | GCP project override. |
bucket | string | Yes | — | Destination bucket. |
key | string | Yes | — | Destination object key. |
body_base64 | string | No | — | Base64 body for small direct uploads. |
source_uri | string | No | — | Internal artifact URI for server-side streaming. |
content_type | string | No | — | Object content type. |
cache_control | string | No | — | Cache-Control metadata. |
content_encoding | string | No | — | Optional content encoding. |
metadata | json | No | — | Custom object metadata. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
bucket | string | No | — | Destination bucket. |
key | string | No | — | Destination object key. |
object_uri | string | No | — | gs:// object URI. |
generation | string | No | — | GCS object generation. |
etag | string | No | — | Object etag. |
size_bytes | integer | No | — | Uploaded size. |
sha256 | string | No | — | SHA-256 digest when calculated. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed 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 | — | preflight | — |
preflighting | No | No | — | execute | — |
uploading | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | uploading | — |
uploading | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.storage.object.upload",
"initial_data": {
"connection_uuid": "value",
"bucket": "value",
"key": "value"
}
}