start_workflow

Start a configured workflow against one or more target assets.

start_workflow

Start a configured workflow against one or more target assets.

Start a configured workflow over confined target assets.

Safety class: C · API type: admin · Min version:

📘

Confinement

Class C: a workflow can have GLOBAL side effects. Only target confined assets (under your run-root), and only reference a workflow you own. Non-prod only.

Signatures

def start_workflow(sdk, action_arguments, target_ids):
    """Start a workflow (action_arguments) against target_ids; return the run dict or None."""
    return sdk.start_workflow(action_arguments, target_ids)
export async function startWorkflow(sdk, actionArguments, targetIds) {
    // Start a configured workflow over confined target assets.
    return await sdk.startWorkflow(actionArguments, targetIds);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes
action_argumentsactionArgumentsdictyese.g. {"workflowId": "<workflow-uuid>"}
target_idstargetIdslist[str]yese.g. ["<asset-uuid>"]

Returns

dict | None — the started workflow run; None on failure.

Errors

  • 401 unauthenticated
  • InvalidAPITypeException on a non-admin session
  • 400 unknown workflowId

See also: Python ↔ JS naming map · Return shapes.