gcp.storage.create_bucket ​
Create a Google Cloud Storage bucket
Creates a Google Cloud Storage (GCS) bucket with standard LTINTEG configuration.
The bucket is created with uniform bucket-level access enabled. When the workflow completes, the bucket is ready to receive objects.
Inputs:
- bucket_name: Name of the GCS bucket (required). Must be globally unique.
- location: GCP region where the bucket will be created (optional, default: US).
- storage_class: Storage class for the bucket (optional, default: STANDARD).
- connection_uuid: Cloud connection UUID for GCP credentials.
Outputs (terminal state_data):
- bucket_name: str — confirmed bucket name
- bucket_url: str — GCS bucket URL, e.g. gs://my-bucket
- location: str — region where the bucket was created
- storage_class: str — storage class of the bucket
Compensation: Use gcp.storage.delete_bucket to undo. Plugin required: context.get_plugin("gcp") must expose .get_storage_client() and .get_project_id_for_connection().
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
bucket_name | string | Yes | — | Globally-unique GCS bucket name |
location | string | No | — | GCP region (default: US) |
storage_class | string | No | — | Storage class (default: STANDARD) |
connection_uuid | uuid | No | — | Cloud connection UUID for GCP credentials |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
bucket_name | string | No | — | — |
bucket_url | string | No | — | — |
location | string | No | — | — |
storage_class | string | No | — | — |
connection_uuid | uuid | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/v1/workflows/gcp.storage.create_bucket/start
Content-Type: application/json
{ ... input fields ... }