Creates a file download task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:CreateDownloadTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the received messages. Valid values:
|
zh |
| TaskType |
string |
No |
The task type. For valid values, call the operation that queries file download task types. |
InternetFirewallAsset |
| TaskData |
string |
Yes |
The request query conditions for the download task. This parameter is required. If this parameter is not specified, the API returns error code -340408 (download task TaskData invalid). |
{\"SearchItem\":\"\",\"UserType\":\"buy\",\"IpVersion\":\"4\"} |
| TimeZone |
string |
No |
The time zone for time information in the downloaded file. Specify the value in IANA time zone identity format. Default value: Asia/Shanghai (UTC+8). |
Asia/Shanghai |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TaskId |
integer |
The task ID, which uniquely identifies the task. This field is returned only under specific conditions, such as when the task is completed synchronously. In regular responses, only RequestId is returned. Use a task query operation to obtain the task status and download URL. |
132 |
| RequestId |
string |
The request ID. |
E7F333E0-7B70-54DA-A307-4B2B49DEE923 |
| TaskName |
string |
The name of the file download task. This field is returned only under specific conditions, such as when the task is completed synchronously. In regular responses, only RequestId is returned. |
test-IPv4 |
| Status |
string |
The task status. Valid values:
This field is returned only under specific conditions, such as when the task is completed synchronously. In regular responses, only RequestId is returned. Use a task query operation to obtain the real-time status. |
start |
Examples
Success response
JSON format
{
"TaskId": 132,
"RequestId": "E7F333E0-7B70-54DA-A307-4B2B49DEE923",
"TaskName": "test-IPv4",
"Status": "start"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
| 400 | ErrorDBInsertError | A database insert error occurred. | An error occurred while performing an insert operation in the database. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.