View workflow reruns

List the rerun branches under a workflow job.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/rerun-branches

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the workflow job list to obtain the workflow ID and source job ID. Prepare personal access token and target workspace ID that can access the target workspace.

Confirm that the current identity has workflow read permission, and select the source of the workflow in the target workspace for execution.

Request parameters

Replace $WORKFLOW_ID, $EXECUTION_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID/rerun-branches" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workflow_id

string

Yes

workflow ID, located in the request path.

execution_id

string

Yes

Source job ID, located in the request path.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "reruns": [
      {
        "rerun_id": "rerun-001",
        "branch_id": "branch-001",
        "case_id": "case-001",
        "source_execution_id": "exec-001",
        "node_key": "root.load",
        "mode": "rerun_current_and_downstream",
        "status": "running"
      }
    ]
  }
}

Field

Type

Description

data.reruns

array of object

Rerun the branch list.

data.reruns[].rerun_id

string

Rerun plan ID.

data.reruns[].branch_id

string

Rerun branch ID.

data.reruns[].case_id

string

Run ID.

data.reruns[].source_branch_id

string

Source branch ID.

data.reruns[].new_workflow_execution_id

string

New workflow execution ID.

data.reruns[].source_execution_id

string

Source execution ID.

data.reruns[].source_case_id

string

Source run ID.

data.reruns[].node_key

string

Node key.

data.reruns[].source_node_execution_id

string

Source node execution ID.

data.reruns[].mode

string

processing mode. Value: rerun_current_and_downstream, rerun_downstream_with_revisions.

data.reruns[].status

string

status. Values: initializing, ready, running, paused, succeeded, failed, cancelled.

data.reruns[].error

string

error message.

data.reruns[].created_at

string

Creation time.

data.reruns[].updated_at

string

Update time.

Error response

The error response does not contain data.

JSON
{
  "code": "ErrNotFound",
  "msg": "资源不存在"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Last updated on