CreateExportTask
Creates an asynchronous export task to export the WUYING server list, user usage report, cloud browser bookmarks, or URL whitelist.
Operation description
This operation creates an export task and returns the task ID and initial status. The exported file is not returned synchronously.
After the task is created, save TaskId and call DescribeExportTasks to query the task status and progress. The recommended polling interval is 5 to 10 seconds. When the status is FINISHED, use the DownloadUrl in the latest query result to download the XLSX file. When the status is FAILED, check ErrorMsg and stop polling.
The task is valid for 24 hours after creation. The download URL has an independent signature validity period of up to 1 hour, which does not exceed the remaining validity period of the task. Query the latest URL before downloading. You cannot obtain a valid download URL after the task expires.
The WUYING server list export only accepts the filter fields listed in QueryParamJson. Pagination is controlled by the server. A single task can export up to 100,000 records. The cloud browser bookmarks and URL whitelist exports export the complete list of the target delivery group. This is not affected by the list search terms or the current page. The ownership and product type of the delivery group are verified before execution. Data is read in pages during execution, and no consistent snapshot is provided. A successful creation does not guarantee that subsequent verification, query, or file generation will succeed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:CreateExportTask |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
No |
The export task type. This parameter is required and case-sensitive. Valid values:
Different task types use different query conditions in QueryParamJson. Only WUYING_SERVER_LIST supports selecting export columns by using ExportFields. |
WUYING_SERVER_LIST |
| QueryParamJson |
string |
No |
The JSON string serialized from the query condition object. This parameter is required and cannot be an empty string. Field names must use the following lower camel case format.
|
{"bizRegionId":"cn-hangzhou","zoneId":"cn-hangzhou-h"} |
| ExportFields |
array |
No |
The list of field codes for export columns. This parameter is optional and applies only to WUYING_SERVER_LIST. Do not pass this parameter for other task types. You can pass up to 100 elements. The codes are case-sensitive. Leading and trailing spaces in fields are removed, and blank elements are ignored. Duplicate codes are retained in the order of their first appearance. WuyingServerId is always the first column, and the remaining columns are exported in the order of the request. If this parameter is not passed, only WuyingServerId is exported. Supported codes: WuyingServerId, WuyingServerName, Status, BizRegionId, ZoneId, OfficeSiteId, ServerInstanceType, ServerInstanceTypeId, Cpu, Memory, Image, OsType, ImageId, SystemDisk, DataDisks, NetworkInterfaceIp, PrivateIpSets, SecurityGroupIds, Bandwidth, ChargeType, SubPayType, VirtualNodePool, CreateTime, ExpiredTime, and VirtualKubeletInfo. In the original RPC request, pass the parameters sequentially as ExportFields.1, ExportFields.2, and so on. For example, ExportFields.1=WuyingServerId and ExportFields.2=Status. |
["WuyingServerId","Status"] |
|
string |
No |
The code of a single export field. For valid values, see the supported list of ExportFields. The value is case-sensitive. |
WuyingServerId |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for creating an export task, which includes the request ID and the newly created task information. |
||
| RequestId |
string |
The ID of the request. You can use the ID to locate call records and troubleshoot issues. The example value is partially desensitized. |
7D30C5D6-**** |
| ExportTaskModel |
object |
The information about the newly created export task. When the task is created, Status is INIT, Progress is 0, and the download URL and error message are empty. |
|
| TaskId |
string |
The ID of the newly created export task. The value is a 32-character UUID string without hyphens. You can use this ID as the TaskId parameter in DescribeExportTasks to query the task. |
8119078c29e948dba2e0a9917995332a |
| TaskType |
string |
The export task type. The value is the same as the TaskType of the current request. For the meaning of each type, see the TaskType request parameter. |
WUYING_SERVER_LIST |
| Status |
string |
The task status. When this operation is successfully called, INIT (initialized and waiting for execution) is returned. You can subsequently call DescribeExportTasks to query RUNNING (executing), FINISHED (completed), or FAILED (failed). Do not treat INIT as export completion. |
INIT |
| Progress |
number |
The progress of the export task. Unit: percentage. Valid values: 0 to 100. When this operation is successfully called, 0 is returned. The value is updated based on the execution phase and reaches 100 when the task is completed. |
0 |
| DownloadUrl |
string |
The download URL of the exported file. When this operation is called to create a task, the file is not generated and this field is empty. The null in the example indicates a JSON null value, not the string "null". You can subsequently call DescribeExportTasks to query the latest download URL of a completed task and use it within the validity period. |
null |
| ErrorMsg |
string |
The error message when the task execution fails. When this operation is successfully called, this field is empty. The null in the example indicates a JSON null value, not the string "null". When you subsequently query the task and the status is FAILED, you can use this field to learn the cause of the failure. |
null |
| CreateTime |
string |
The time when the task was created. The format is yyyy-MM-dd HH:mm:ss, accurate to seconds. The returned string does not contain a time zone offset. |
2026-07-27 19:00:00 |
Examples
Success response
JSON format
{
"RequestId": "7D30C5D6-****",
"ExportTaskModel": {
"TaskId": "8119078c29e948dba2e0a9917995332a",
"TaskType": "WUYING_SERVER_LIST",
"Status": "INIT",
"Progress": 0,
"DownloadUrl": "null",
"ErrorMsg": "null",
"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.