Query export files¶
Lists the files in the export task and the processing status of each file.
POST $CLOUDSIGMA_API_BASE/export/task/files
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 details. 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.
Read one page of file
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/files" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
"task_id": "$TASK_ID",
"limit": 20,
"offset": 0
}
EOF
Filter and sort files
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/files" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
"task_id": "$TASK_ID",
"statuses": [3],
"order_by": "ended_at",
"order_direction": "asc",
"limit": 20,
"offset": 0
}
EOF
Read next page
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/files" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
"task_id": "$TASK_ID",
"limit": 20,
"offset": 20
}
EOF
Read one page of file
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
To view the export task ID of the file. |
|
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 file records to skip. |
|
integer (integer array) |
No |
File status filtering: |
|
string |
No |
Sorting field: |
|
string |
No |
|
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"files": [
{
"id": "export-file-001",
"file_name": "summary.csv",
"file_type": ".csv",
"status": 3,
"full_path": [
"volume-001",
"reports",
"summary.csv"
],
"details": "目标连接器不可用",
"create_time": "2026-08-28T10:00:00.000000+0000",
"start_time": "2026-08-28T10:01:00.000000+0000",
"end_time": "2026-08-28T10:02:00.000000+0000"
}
],
"total": 1,
"total_success": 0,
"total_failure": 1,
"total_files": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Export file records. |
|
string |
Export record ID. |
|
string |
File name. |
|
string |
The extension identified by the file name. |
|
integer |
File processing status. |
|
array of string |
The full path of the source file. |
|
string |
Processing details or failure description. |
|
string or null |
Creation time. |
|
string or null |
Time to start exporting. |
|
string or null |
end time. |
|
integer |
The total number of files under the current filter conditions. |
|
integer |
The total number of files successfully exported in the task. |
|
integer |
The total number of failed files in the task. |
|
integer |
The total number of files in the task. |
Error response¶
{
"code": "ErrServer",
"msg": "无法读取导出文件",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |