View workflow reruns¶
List the rerun branches under a workflow job.
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.
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 |
|---|---|---|---|
|
string |
Yes |
workflow ID, located in the request path. |
|
string |
Yes |
Source job ID, located in the request path. |
Successful response¶
{
"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 |
|---|---|---|
|
array of object |
Rerun the branch list. |
|
string |
Rerun plan ID. |
|
string |
Rerun branch ID. |
|
string |
Run ID. |
|
string |
Source branch ID. |
|
string |
New workflow execution ID. |
|
string |
Source execution ID. |
|
string |
Source run ID. |
|
string |
Node key. |
|
string |
Source node execution ID. |
|
string |
processing mode. Value: |
|
string |
status. Values: |
|
string |
error message. |
|
string |
Creation time. |
|
string |
Update time. |
Error response¶
The error response does not contain data.
{
"code": "ErrNotFound",
"msg": "资源不存在"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |