gcp.storage.bucket.ensure ​
Ensure a GCS bucket exists with deployment-ready 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 | — | GCS bucket name. |
location | string | No | — | Bucket location, default from deployment target. |
storage_class | string | No | — | GCS storage class. |
uniform_bucket_level_access | boolean | No | — | Enable uniform bucket-level access. |
public_access_prevention | string | No | — | Public access prevention mode: enforced or inherited. |
versioning_enabled | boolean | No | — | Enable object versioning. |
lifecycle | json | No | — | GCS lifecycle configuration. |
website | json | No | — | Static website main/error page config. |
cors | json | No | — | Optional CORS rules. |
labels | json | No | — | Labels to apply. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
bucket | string | No | — | Bucket name. |
bucket_url | string | No | — | gs:// bucket URI. |
created | boolean | No | — | True when bucket was created. |
updated | boolean | No | — | True when metadata changed. |
location | string | No | — | Effective location. |
storage_class | string | No | — | Effective storage class. |
uniform_bucket_level_access | boolean | No | — | Effective uniform bucket-level access setting. |
public_access_prevention | string | No | — | Effective public access prevention mode. |
versioning_enabled | boolean | No | — | Effective object versioning setting. |
lifecycle | json | No | — | Effective lifecycle configuration. |
website | json | No | — | Effective website config. |
cors | json | No | — | Effective CORS rules. |
labels | json | No | — | Effective labels. |
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 | — |
ensuring | No | No | — | complete | — |
preflighting | No | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | ensuring | — |
ensuring | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.storage.bucket.ensure",
"initial_data": {
"connection_uuid": "value",
"bucket": "value"
}
}