View workflow jobs¶
List workflow jobs, which can be filtered by status and execution mode.
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions
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 workflow details confirm that the target workflow can be read and obtain the workflow ID. When the details return 404, check the ID before calling the list. Prepare personal access token and target workspace ID with workflow read permission.
Path parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $WORKFLOW_ID with actual values.
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions?offset=0&limit=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workflow ID. |
|
integer |
No |
Offset from 0. |
|
integer |
No |
The upper limit of the quantity returned this time. |
|
string |
No |
Filter by job status. |
|
string |
No |
Filter by execution. |
|
string |
No |
Filter by workflow name. Applicable when using the global job list entry. |
When querying all workflow jobs that can be read by the current caller in the target workspace, use /v5/workflow/v2/workflow-apps/executions and do not pass the path parameter workflow_id.
The offset needs to be non-negative, and the explicit page size range is 1–200. Status and run mode filter by exact enumeration. cancelled and canceled merge matching historical values. Name queries preserve the %, _ wildcard characters of SQL LIKE. The list is filtered first for persistent status and then for runtime status, so the returned status may be different from the filtered value.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"total": 1,
"executions": [
{
"execution_id": "run-001",
"workflow_id": "wf-001",
"status": "completed",
"execution_mode": "one_shot",
"workflow_name": "daily-import"
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
integer |
The total number under the current filter criteria. |
|
array of object |
Job list. |
|
string |
Job ID. |
|
string |
workflow ID. |
|
string |
Status: |
|
array of string |
Action hints for the current state. They do not indicate that the current user has passed permission checks. |
|
string |
Execution mode: |
|
string |
Cron expressions. |
|
string |
Task ID. |
|
string |
Run case ID. |
|
string |
Workflow definition ID. |
|
string |
workflow version ID. |
|
string |
Volume dispatch job ID. |
|
string |
Pause scope: |
|
string |
error message. |
|
string |
Start time in RFC 3339 format. |
|
string |
End time in RFC 3339 format. |
|
string |
Creation time. In RFC 3339 format. |
|
string |
Last updated time. In RFC 3339 format. |
|
string |
Display information. |
|
string |
Display information. |
|
string |
Association ID. |
Error response¶
The following is the HTTP 400 response when the query parameters are invalid. You cannot rely on the job list to return 404 to confirm whether the workflow exists.
{
"code": "ErrParamInvalid",
"msg": "Bad Request"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |