Query task details¶
View the export task, its target configuration and file statistics.
POST $CLOUDSIGMA_API_BASE/export/task/info
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. Get the task ID from Query Export Task List. Prepare personal access token and target workspace ID that can access the target workspace.
Request body¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $TASK_ID with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/info" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
"id": "$TASK_ID"
}
EOF
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The export task ID to read. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"id": "export-task-123",
"name": "export-to-s3",
"creator": "data-engineer",
"connector_name": "target-s3",
"type": 5,
"status": 2,
"config": {
"s3_config": {
"path": "exports/",
"need_compress": false,
"compress_method": ""
}
},
"create_time": "2026-08-28T10:00:00.000000+0000",
"end_time": "2026-08-28T10:02:00.000000+0000",
"file_stats": {
"total": 4,
"pending": 0,
"running": 0,
"failed": 1,
"completed": 3
},
"fileSuccess": 3,
"fileFail": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
Export task details. |
|
string |
Task ID. |
|
string |
Task name. |
|
string |
Creator ID. |
|
string |
Target connector name. |
|
integer |
Export target type. |
|
integer |
Task status. |
|
object |
Object storage target configuration. |
|
string |
target path. |
|
boolean |
Whether to compress exported content. |
|
string |
Compression method. |
|
string or null |
Creation time. |
|
string or null |
end time. |
|
object |
Summary of file count. |
|
integer |
Total number of files. |
|
integer |
Number of files to be processed. and |
|
integer |
The number of files being exported. |
|
integer |
Number of failed files. When it is |
|
integer |
Number of completed files. |
|
integer |
The number of files successfully exported. |
|
integer |
The number of files that failed to export. |
Error response¶
{
"code": "ErrServer",
"msg": "未找到导出任务",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |