View file execution records

View workflow job records triggered by the file based on the file ID. Returns an empty list when no file ID is provided.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/file-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. The results are filtered by workflows that can be read by the current identity. If there are no readable workflows, an empty list is returned. A successful query does not prove that the caller has read permission on the file itself.

Prepare personal access token, target workspace ID and the file ID to be queried that can access the target workspace.

Query parameters

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $FILE_ID with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/file-executions?file_id=$FILE_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

file_id

string

No

The file ID to query. When omitted, an empty list is returned.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "executions": [
      {
        "execution_id": "run-001",
        "workflow_id": "wf-001",
        "status": "completed",
        "scheduler_visible": false
      }
    ],
    "total": 1
  }
}

Field

Type

Description

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

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[].execution_mode

string

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

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[].case_id

string

Association ID.

data.executions[].scheduler_visible

boolean

Whether the scheduler is visible.

data.executions[].case_start_state

string

status information. The values are not_started, starting, started

data.executions[].error

string

error message.

data.total

integer

The total number under the current filter criteria.

Error response

JSON
{
  "code": "ErrWorkspaceRequired",
  "msg": "需要工作区 ID"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrWorkspaceRequired, ErrParamInvalid

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.

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