Query task list

Lists export tasks that can be read in the current workspace.

HTTP
POST $CLOUDSIGMA_API_BASE/export/task/list

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. Prepare personal access token and target workspace ID that can access the target workspace.

Request body

Replace $CLOUDSIGMA_API_KEY and $WORKSPACE_ID with actual values. Empty objects read the default list.

Read a page task

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/list" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H 'Content-Type: application/json' \
  -d '{
    "limit": 20,
    "offset": 0
  }'

Filter and sort tasks

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/list" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H 'Content-Type: application/json' \
  -d '{
    "connector_name": "target-s3",
    "task_id": "export-task-123",
    "order_by": "created_at",
    "order_direction": "asc",
    "statuses": [3],
    "creator": "data-engineer",
    "limit": 20,
    "offset": 0
  }'

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/list" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H 'Content-Type: application/json' \
  -d '{
    "limit": 20,
    "offset": 20
  }'

Read a page task

Parameter

Type

Required

Description

limit

integer

No

This page returns the number of items. When omitted or less than or equal to 0, it is 20. Same as previous page.

offset

integer

No

The number of skipped tasks, not the page number. The number of tasks skipped. offset on the previous page plus the number of items read on this page. Stop reading when offset is not less than data.total.

connector_name

string

No

Filter by text contained in the target connector name.

task_id

string

No

Refine filtering by export task ID.

order_by

string

No

Sorting field: created_at, ended_at, status or name.

order_direction

string

No

asc is in ascending order, and other values are in descending order.

statuses

integer (integer array)

No

Task status filtering: 0 pending, 1 running, 2 completed, 3 failed.

creator

string

No

Refine by creator.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "tasks": [
      {
        "id": "export-task-123",
        "name": "export-to-s3",
        "connector_name": "target-s3",
        "type": 5,
        "status": 1,
        "export_source": [
          [
            "volume-001",
            "reports",
            "summary.csv"
          ]
        ],
        "create_time": "2026-08-28T10:00:00.000000+0000",
        "end_time": null,
        "fileSuccess": 3,
        "fileFail": 1
      }
    ],
    "total": 1
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.tasks

array of object

Export task list.

data.tasks[].id

string

Task ID.

data.tasks[].name

string

Task name.

data.tasks[].connector_name

string

Target connector name.

data.tasks[].type

integer

Export target type.

data.tasks[].status

integer

Task status.

data.tasks[].export_source

array of string

A collection of source file paths.

data.tasks[].create_time

string or null

Creation time.

data.tasks[].end_time

string or null

end time.

data.tasks[].fileSuccess

integer

The number of files successfully exported.

data.tasks[].fileFail

integer

The number of files that failed to export.

data.total

integer

The total number of tasks under the current filter conditions.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "无法读取任务列表",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on