Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.r2.provision ​

Provision a Cloudflare R2 bucket end-to-end

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-cloudflare
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes——
bucket_namestringYes——
location_hintstringNo——
cors_ruleslistNo——
lifecycle_ruleslistNo——
public_urlstringNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes——
bucket_namestringYes——
location_hintstringNo——
cors_ruleslistNo——
lifecycle_ruleslistNo——
public_urlstringNo——
actorstringNo——
created_atstringNo——
cors_applied_atstringNo——
lifecycle_applied_atstringNo——
persisted_atstringNo——
cloudflare_r2_bucket_uuiduuidNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
failure_typestringNo—Engine-stamped failure category (atomic path)
failed_actionstringNo—Engine-stamped action method that raised (atomic path)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—createInputs accepted
configuring_corsNoNo—configure_lifecycleApplying CORS rules (skipped if empty)
configuring_lifecycleNoNo—persistApplying lifecycle rules (skipped if empty)
creatingNoNo—configure_corsCreating R2 bucket on Cloudflare
persistingNoNo—completePersisting CloudflareR2Bucket row
completedNoYesYes—Provisioned
failedNoYesNo—Provision failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedcreatecreating—
creatingconfigure_corsconfiguring_cors—
configuring_corsconfigure_lifecycleconfiguring_lifecycle—
configuring_lifecyclepersistpersisting—
persistingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "cloudflare.r2.provision",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "bucket_name": "value"
  }
}