Query task list¶
Lists export tasks that can be read in the current workspace.
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
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
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
}'
Read next page
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 |
|---|---|---|---|
|
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. |
|
integer |
No |
The number of skipped tasks, not the page number. The number of tasks skipped. |
|
string |
No |
Filter by text contained in the target connector name. |
|
string |
No |
Refine filtering by export task ID. |
|
string |
No |
Sorting field: |
|
string |
No |
|
|
integer (integer array) |
No |
Task status filtering: |
|
string |
No |
Refine by creator. |
Successful response¶
{
"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 |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Export task list. |
|
string |
Task ID. |
|
string |
Task name. |
|
string |
Target connector name. |
|
integer |
Export target type. |
|
integer |
Task status. |
|
array of string |
A collection of source file paths. |
|
string or null |
Creation time. |
|
string or null |
end time. |
|
integer |
The number of files successfully exported. |
|
integer |
The number of files that failed to export. |
|
integer |
The total number of tasks under the current filter conditions. |
Error response¶
{
"code": "ErrServer",
"msg": "无法读取任务列表",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |