Skip to content
Proud to collaborate with Microsoft for Startups

gcp.storage.bucket.ensure ​

Ensure a GCS bucket exists with deployment-ready metadata.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—GCP project override.
bucketstringYes—GCS bucket name.
locationstringNo—Bucket location, default from deployment target.
storage_classstringNo—GCS storage class.
uniform_bucket_level_accessbooleanNo—Enable uniform bucket-level access.
public_access_preventionstringNo—Public access prevention mode: enforced or inherited.
versioning_enabledbooleanNo—Enable object versioning.
lifecyclejsonNo—GCS lifecycle configuration.
websitejsonNo—Static website main/error page config.
corsjsonNo—Optional CORS rules.
labelsjsonNo—Labels to apply.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project id.
bucketstringNo—Bucket name.
bucket_urlstringNo—gs:// bucket URI.
createdbooleanNo—True when bucket was created.
updatedbooleanNo—True when metadata changed.
locationstringNo—Effective location.
storage_classstringNo—Effective storage class.
uniform_bucket_level_accessbooleanNo—Effective uniform bucket-level access setting.
public_access_preventionstringNo—Effective public access prevention mode.
versioning_enabledbooleanNo—Effective object versioning setting.
lifecyclejsonNo—Effective lifecycle configuration.
websitejsonNo—Effective website config.
corsjsonNo—Effective CORS rules.
labelsjsonNo—Effective labels.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—preflight—
ensuringNoNo—complete—
preflightingNoNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingpreflightpreflighting—
preflightingexecuteensuring—
ensuringcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "gcp.storage.bucket.ensure",
  "initial_data": {
    "connection_uuid": "value",
    "bucket": "value"
  }
}