data.network.account.persist ​
Persist a NetworkAccount (create or restore)
Create or restore a NetworkAccount.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-network |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization |
cloud_connection_uuid | uuid | Yes | — | UUID of the backing CloudConnection |
backend_type | string | Yes | — | NetworkBackendType value (aws_vpc, gcp_vpc, azure_vnet, ...) |
name | string | Yes | — | Account display name; unique within an organization |
description | string | No | — | Optional human description |
region | string | No | — | Provider region; nullable for region-less providers |
config | dict | No | — | Public config bag - must NOT contain secrets |
provider_metadata | dict | No | — | Provider account metadata (no secrets) |
actor | string | No | — | Caller initiating the persist |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
network_account_uuid | uuid | Yes | — | UUID of the persisted NetworkAccount |
created | boolean | Yes | — | True when a new row was inserted |
restored | boolean | Yes | — | True when a soft-deleted row was restored |
persisted_at | string | Yes | — | ISO-8601 timestamp |
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 |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Persist account |
completed | No | Yes | Yes | — | Persisted |
failed | No | Yes | No | — | Persist failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
persisted | SUCCESS | Persist a NetworkAccount (create or restore) | — |
failed | FAILURE | Network workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.network.account.persist",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"backend_type": "value",
"name": "value"
}
}