View workflow rerun details¶
Read the status and associated execution information of a workflow rerun branch.
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/reruns/{rerun_id}
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 rerun list to obtain the rerun ID. Prepare personal access token and target workspace ID that can access the target workspace.
Confirm that the current identity has read permissions for the target workflow. The source execution must belong to the current workflow and workspace.
Request parameters¶
Replace $WORKFLOW_ID, $EXECUTION_ID, $RERUN_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/reruns/$RERUN_ID" \
-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. |
|
string |
Yes |
Rerun ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"rerun": {
"rerun_id": "rerun-001",
"branch_id": "branch-001",
"case_id": "case-001",
"source_branch_id": "branch-000",
"new_workflow_execution_id": "exec-002",
"source_execution_id": "exec-001",
"node_key": "root.load",
"mode": "rerun_current_and_downstream",
"status": "running"
}
}
}
Field |
Type |
Description |
|---|---|---|
|
object |
Rerun branch information. |
|
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. |
|
string |
Error message at startup. Returned if there is a value. |
|
string |
Error when refreshing branch information. Returned if there is a value. |
When you need to stop the current branch, use the same set of identifiers cancel the workflow and rerun. When the new job ID is returned, you can query workflow job details.
Error response¶
The business error response does not contain data.
{
"code": "ErrNotFound",
"msg": "资源不存在"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |