appdata.instance.provision ​
Provision the app's own Postgres instance on an appdata host (idempotent)
Give the app its own Postgres instance (idempotent).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-appdata |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
identity_app_uuid | uuid | Yes | — | Identity app the credential reads; must own an appdata namespace in this organization |
request_id | string | No | — | Caller request id for audit correlation |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
backend_kind | string | Yes | — | shared |
instance_uuid | uuid | No | — | — |
host_name | string | No | — | — |
state | string | No | — | provisioning |
wire_host | string | No | — | — |
wire_port | integer | No | — | — |
active_connections | integer | No | — | — |
disk_bytes | integer | No | — | — |
last_activity_at | string | No | — | — |
created_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped failure reason |
failed_at_state | string | No | — | State when the workflow failed |
failed_step | string | No | — | Failed DAG step name |
failed_layer | integer | No | — | Failed DAG layer index |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Provision credential |
completed | No | Yes | Yes | — | Credential provisiond |
failed | No | Yes | No | — | Provision failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
provisioned | SUCCESS | Provision the app's own Postgres instance on an appdata host (idempotent) | instance_uuid, host_name, state |
failed | FAILURE | Appdata workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "appdata.instance.provision",
"initial_data": {
"organization_uuid": "value",
"identity_app_uuid": "value"
}
}