Skip to content
Proud to collaborate with Microsoft for Startups

data.network.scope.persist ​

Upsert a NetworkScope from sync (idempotent on provider_scope_ref)

Create, restore, or update a NetworkScope by (account, provider_scope_ref).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-network
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—UUID of the organization that owns the scope
network_account_uuiduuidYes—UUID of the parent NetworkAccount
provider_scope_refstringYes—Provider-side scope identifier (e.g. vpc-0abc...)
namestringYes—Human-readable scope name
cidr_blockslistNo—List of CIDR blocks attached to the scope
is_defaultbooleanNo—Whether the provider considers this the default scope
provider_metadatadictNo—Provider-side metadata bag (no secrets)
actorstringNo—Caller (UUID or numeric user id) initiating the persist

Output Schema ​

FieldTypeRequiredDefaultDescription
scope_uuiduuidYes—UUID of the persisted NetworkScope
createdbooleanYes—True when a new row was inserted
restoredbooleanYes—True when a soft-deleted row was restored
updatedbooleanYes—True when an existing active row was mutated
persisted_atstringYes—ISO-8601 timestamp of the persist
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

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completePersist scope
completedNoYesYes—Persisted
failedNoYesNo—Persist failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
persistedSUCCESSUpsert a NetworkScope from sync (idempotent on provider_scope_ref)—
failedFAILURENetwork workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "data.network.scope.persist",
  "initial_data": {
    "organization_uuid": "value",
    "network_account_uuid": "value",
    "provider_scope_ref": "value",
    "name": "value"
  }
}