View workflow jobs

List workflow jobs, which can be filtered by status and execution mode.

HTTP
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.

Shell
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

workflow_id

string

Yes

workflow ID.

offset

integer

No

Offset from 0.

limit

integer

No

The upper limit of the quantity returned this time.

status

string

No

Filter by job status.

execution_mode

string

No

Filter by execution.

workflow_name

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

JSON
{
  "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

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.total

integer

The total number under the current filter criteria.

data.executions

array of object

Job list.

data.executions[].execution_id

string

Job ID.

data.executions[].workflow_id

string

workflow ID.

data.executions[].status

string

Status: preparing, waiting, pending, triggered, running, completed, failed, cancelled, submitted, scheduled, paused, canceled, success, succeeded, queued, cancelling, canceling.

data.executions[].available_actions

array of string

Action hints for the current state. They do not indicate that the current user has passed permission checks.

data.executions[].execution_mode

string

Execution mode: one_shot, volume_trigger, cron, dynamic_service, task_by_version.

data.executions[].cron_expression

string

Cron expressions.

data.executions[].moi_task_id

string

Task ID.

data.executions[].moi_case_id

string

Run case ID.

data.executions[].moi_workflow_def_id

string

Workflow definition ID.

data.executions[].moi_workflow_version_id

string

workflow version ID.

data.executions[].dispatch_job_id

string

Volume dispatch job ID.

data.executions[].pause_scope

string

Pause scope: execution or workflow.

data.executions[].error

string

error message.

data.executions[].started_at

string

Start time in RFC 3339 format.

data.executions[].ended_at

string

End time in RFC 3339 format.

data.executions[].created_at

string

Creation time. In RFC 3339 format.

data.executions[].updated_at

string

Last updated time. In RFC 3339 format.

data.executions[].workflow_name

string

Display information.

data.executions[].data_name

string

Display information.

data.executions[].file_id

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.

JSON
{
  "code": "ErrParamInvalid",
  "msg": "Bad Request"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

ErrForbidden

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

ErrNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

ErrConflict

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on