neon.branch.provision ​
Create a Neon branch and persist the local row
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-neon |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
neon_project_uuid | uuid | Yes | — | — |
name | string | No | — | — |
parent_branch_uuid | uuid | No | — | Our UUID of the parent branch |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
neon_project_uuid | uuid | Yes | — | — |
name | string | No | — | — |
parent_branch_uuid | uuid | No | — | Our UUID of the parent branch |
actor | string | No | — | — |
neon_project_id | string | No | — | — |
neon_parent_id | string | No | — | — |
neon_branch_id | string | No | — | — |
neon_branch_uuid | uuid | No | — | — |
neon_operation_id | string | No | — | — |
is_primary | boolean | No | — | — |
provider_metadata | json | No | — | — |
endpoint_host | string | No | — | — |
endpoint_metadata | json | No | — | — |
created_at_provider | string | No | — | — |
provisioned_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | create | Inputs accepted |
creating | No | No | — | persist | Creating branch at Neon + awaiting operation |
persisting | No | No | — | complete | Persisting NeonBranch row |
completed | No | Yes | Yes | — | Branch provisioned |
failed | No | Yes | No | — | Provision failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | create | creating | — |
creating | persist | persisting | — |
persisting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "neon.branch.provision",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"neon_project_uuid": "value"
}
}