DescribeExportTasks
Queries the execution status, progress, and download URLs of export tasks by page.
Operation description
Calls this operation to query the export tasks under the current Alibaba Cloud account by page to obtain the task status, execution progress, export file names, and download URLs. Export tasks are created by CreateExportTask. This operation only reads task information and does not create, modify, or retry tasks.
The query results are returned in descending order of task creation time, with the most recently created tasks listed first. Only tasks in the INIT, RUNNING, FINISHED, and FAILED states are returned. Tasks marked as EXPIRED are not included in the results.
When polling a single task by TaskId, set PageNumber to 1 and PageSize to 1, set the polling interval to 5 to 10 seconds, and stop polling after the task enters the FINISHED or FAILED state.
A task is valid for 24 hours after creation and is marked as expired by a background task after 25 hours. Therefore, within the 24- to 25-hour window, a FINISHED task may still be queried, but its DownloadUrl is empty. After a task is marked as expired, the query result is an empty array.
If the query result is an empty array, it may be because there are no visible tasks under the current account, the task type does not match, the page number is out of bounds, or the tasks have expired. This operation always returns an array structure and does not return an error when the query result is empty.
The DownloadUrl is an OSS pre-signed URL. The default maximum validity period is 1 hour and does not exceed the remaining validity period of the task. The server automatically refreshes the URL when it is about to expire. Use the URL returned by the most recent query for downloading and do not cache the initially returned URL for a long time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:DescribeExportTasks |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number for a paged query. Pages start from 1. If this parameter is not specified or is set to a value less than 1, the first page is returned. The query results are sorted in descending order of task creation time, with the most recently created tasks listed first. When polling a single task by TaskId, explicitly set this parameter to 1. |
1 |
| PageSize |
integer |
No |
The number of tasks to return per page. If this parameter is not specified, the default value 200 is used. If a value less than 1 is specified, 10 is used. When polling a single task by TaskId, set this parameter to 1 to avoid returning redundant tasks. |
10 |
| TaskType |
string |
No |
Filters tasks by export task type. The value is case-sensitive and must be one of the following enumerated values:
If this parameter is not specified, tasks are not filtered by type, and all tasks under the current account that meet other conditions are returned. If an unrecognized value is specified, the server does not return a parameter error but cancels type filtering. Therefore, you must specify one of the exact enumerated values above. When querying a single task by TaskId, omit this parameter. |
WUYING_SERVER_LIST |
| TaskId |
string |
No |
Filters tasks by export task ID. The value is the TaskId returned by CreateExportTask, which is a 32-character UUID string without hyphens. This parameter requires an exact match and does not support fuzzy queries. If this parameter is not specified, all tasks under the current account that meet other conditions are returned. |
8119078c29e948dba2e0a9917995332a |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for querying export tasks, which includes the request ID, pagination information, and export task list. |
||
| RequestId |
string |
The ID of the request, which is used to locate call records and troubleshoot issues. The example value is partially masked. |
D4A13D91-**** |
| PageSize |
integer |
The actual number of tasks per page used in this query, which is the echoed value of the PageSize request parameter. |
10 |
| PageNumber |
integer |
The actual page number used in this query, which is the echoed value of the PageNumber request parameter. |
1 |
| Count |
integer |
The total number of tasks that meet the query conditions. This value is independent of the number of tasks returned on the current page and can be used with PageSize to calculate the total number of pages. If no tasks meet the conditions, 0 is returned. |
1 |
| ExportTaskModel |
array<object> |
The list of export tasks, sorted in descending order of task creation time, with the most recently created tasks listed first. If no tasks meet the conditions, an empty array is returned. |
|
|
object |
|||
| TaskId |
string |
The export task ID, which is a 32-character UUID string without hyphens. You can use this value as the TaskId parameter of this operation to poll the task. |
8119078c29e948dba2e0a9917995332a |
| TaskType |
string |
The export task type. For the meaning of each value, see the TaskType request parameter. |
WUYING_SERVER_LIST |
| Status |
string |
The export task status. This operation returns the following values:
The server also has an internal EXPIRED state, but this operation does not return tasks in this state. |
FINISHED |
| Progress |
number |
The export task progress, in percentage. Valid values: 0 to 100. This value is updated based on the execution stage of the task and is 100 when the task is completed. |
100 |
| ExportFileName |
string |
The export file name, which consists of the task type, task creation time (in yyyyMMddHHmmss format), and the first 8 characters of the task ID, connected by underscores. The file extension is .xlsx. If the file is not generated, this field is empty. |
WUYING_SERVER_LIST_20260727190000_8119078c.xlsx |
| DownloadUrl |
string |
The OSS pre-signed download URL of the export file. This field is returned only for tasks whose Status is FINISHED. The default maximum validity period of the signature is 1 hour and does not exceed the 24-hour validity period after the task is created. When the remaining validity period is less than 10 minutes, the server automatically refreshes and returns a new URL. If the task is not completed, the task has expired, or the URL refresh fails, this field is empty. The domain name and path in the example URL are for illustration purposes only. The actual returned value is a complete URL with signature parameters. Use the URL returned by the most recent query for downloading. |
https://example.oss-cn-hangzhou.aliyuncs.com/... |
| ErrorMsg |
string |
The cause of the task execution failure. This field is returned only when Status is FAILED. The content is the English error description recorded by the server and can be directly displayed to users or used for troubleshooting. In other states, this field is empty. |
The export sub type is not supported. |
| CreateTime |
string |
The task creation time, in yyyy-MM-dd HH:mm:ss format, accurate to seconds. The returned string does not include the time zone offset. |
2026-07-27 19:00:00 |
Examples
Success response
JSON format
{
"RequestId": "D4A13D91-****",
"PageSize": 10,
"PageNumber": 1,
"Count": 1,
"ExportTaskModel": [
{
"TaskId": "8119078c29e948dba2e0a9917995332a",
"TaskType": "WUYING_SERVER_LIST",
"Status": "FINISHED",
"Progress": 100,
"ExportFileName": "WUYING_SERVER_LIST_20260727190000_8119078c.xlsx",
"DownloadUrl": "https://example.oss-cn-hangzhou.aliyuncs.com/...",
"ErrorMsg": "The export sub type is not supported.",
"CreateTime": "2026-07-27 19:00:00"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.