CreateExportTask

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • WUYING_SERVER_LIST: WUYING server list.

  • USER_USAGE_REPORT: user usage report.

  • BROWSER_BOOKMARK_LIST: cloud browser bookmark list.

  • BROWSER_RESTRICTED_URL_LIST: cloud browser URL whitelist.

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.

  • WUYING_SERVER_LIST: If no filter condition is specified, pass the JSON string corresponding to {}. Only wuyingServerIdList, wuyingServerNameOrId, status, bizRegionId, zoneId, officeSiteId, serverInstanceType, imageId, chargeType, virtualNodePoolId, addVirtualNodePoolStatusList, users, networkInterfaceIp, createTimeStart, createTimeEnd, expiredTimeStart, and expiredTimeEnd are supported. The semantics of each field are the same as those in ListWuyingServer. Pagination or other unlisted fields cannot be passed. The values of wuyingServerIdList, addVirtualNodePoolStatusList, and users must be serialized into JSON array strings before the outer query object is serialized.

  • BROWSER_BOOKMARK_LIST and BROWSER_RESTRICTED_URL_LIST: The object must and can only contain browserInstanceGroupId. The value is a non-empty cloud browser delivery group ID string. It cannot contain Keyword, pagination, or other fields.

  • USER_USAGE_REPORT: Use productType, startDate, and endDate to specify the product type and query time range. You can use appInstanceGroupId, bizRegionId, userId, and connectionStatus for filtering. startDate and endDate use the yyyy-MM-dd HH:mm:ss format. Query parameters are parsed and verified during the asynchronous execution phase. A successful creation does not mean that all these query conditions have passed the verification.

{"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.