查看导出任务列表¶
列出当前工作区中可读取的导出任务。
POST https://api.moi.matrixorigin.cn/v5/export/task/list
调用前准备¶
请求体¶
将 $AI_STUDIO_API_KEY 和 $WORKSPACE_ID 替换为实际值。空对象读取默认列表。
curl -X POST "https://api.moi.matrixorigin.cn/v5/export/task/list" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"limit": 20,
"offset": 0
}'
curl -X POST "https://api.moi.matrixorigin.cn/v5/export/task/list" \
-H "X-API-Key: $AI_STUDIO_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
}'
curl -X POST "https://api.moi.matrixorigin.cn/v5/export/task/list" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"limit": 20,
"offset": 20
}'
参数 |
类型 |
是否必填 |
说明 |
|---|---|---|---|
|
integer |
否 |
本页返回条数;省略或小于等于 0 时为 20。 |
|
integer |
否 |
跳过的任务数,不是页码。 |
参数 |
类型 |
是否必填 |
说明 |
|---|---|---|---|
|
string |
否 |
按目标连接器名称包含的文本筛选。 |
|
string |
否 |
按导出任务 ID 精确筛选。 |
|
string |
否 |
排序字段: |
|
string |
否 |
|
|
array of integer |
否 |
任务状态筛选: |
|
string |
否 |
按创建者精确筛选。 |
|
integer |
否 |
本页返回条数。 |
|
integer |
否 |
跳过的任务数。 |
参数 |
类型 |
是否必填 |
说明 |
|---|---|---|---|
|
integer |
否 |
与上一页相同。 |
|
integer |
否 |
上一页的 |
成功响应¶
{
"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:00Z",
"end_time": null,
"fileSuccess": 3,
"fileFail": 1
}],
"total": 1
}
}
字段 |
类型 |
说明 |
|---|---|---|
|
string |
成功时为 |
|
string |
成功时为 |
|
array of object |
导出任务列表。 |
|
string |
任务 ID。 |
|
string |
任务名称。 |
|
string |
目标连接器名称。 |
|
integer |
导出目标类型。 |
|
integer |
任务状态。 |
|
array of array of string |
来源文件路径集合。 |
|
string 或 null |
创建时间。 |
|
string 或 null |
结束时间。 |
|
integer |
已成功导出的文件数。 |
|
integer |
导出失败的文件数。 |
|
integer |
当前筛选条件下的任务总数。 |
错误响应¶
{
"code": "ErrServer",
"msg": "无法读取任务列表",
"data": null
}
字段 |
类型 |
说明 |
|---|---|---|
|
string |
错误代码。 |
|
string |
可读错误信息。 |
|
null |
错误响应中为 |