Queries detailed information about asynchronous export tasks, including task ID, start and end times, status, parameters, results, and more.
Operation description
This operation queries detailed information about asynchronous export tasks, including task ID, start and end times, status, parameters, results, and more.
QPS limits
The single-user QPS limit for this operation is 10 queries per second (QPS). API calls that exceed this limit will be throttled, which may affect your business. You should call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:DescribeAsyncTasks |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The resource group ID of the Anti-DDoS instance in Resource Management. If this parameter is not specified, the default resource group is used. |
rg-acfm2pz25js**** |
| PageNumber |
integer |
Yes |
The page number for the paged query. |
1 |
| PageSize |
integer |
Yes |
The number of asynchronous export tasks to return on each page for the paged query. |
10 |
When you call this API operation, in addition to the request parameters described in this topic, you must also specify the common request parameters of Alibaba Cloud API. For more information, see Common parameters.
For the request format, see the request example in the Examples section of this topic.
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of asynchronous export tasks that are queried. |
1 |
| RequestId |
string |
The ID of this request, which is generated by Alibaba Cloud as a unique identifier for this request. You can use this ID to troubleshoot and locate issues. |
6623EA1F-30FB-5BC8-BEC9-74D55F6F08F1 |
| AsyncTasks |
array<object> |
The detailed information about the asynchronous export tasks. |
|
|
object |
|||
| EndTime |
integer |
The end time of the task. This value is a timestamp in milliseconds. |
157927362000 |
| TaskType |
integer |
The type of the task. Valid values:
|
5 |
| StartTime |
integer |
The start time of the task. This value is a timestamp in milliseconds. |
156927362000 |
| TaskParams |
string |
The task parameters. This value is a string in the JSON format. Different TaskType values have different task parameters. When TaskType is 1, 3, 4, 5, or 6, the task parameters have the following structure:
When TaskType is 2, the task parameters have the following structure:
|
{"instanceId": "ddoscoo-cn-mp91j1ao****"} |
| TaskStatus |
integer |
The status of the task. Valid values:
|
2 |
| TaskResult |
string |
The task result. This value is a string in the JSON format. Different TaskType values have different task results. When TaskType is 1, 3, 4, 5, or 6, the task result has the following structure:
When TaskType is 2, the task result has the following structure:
|
{"instanceId": "ddoscoo-cn-mp91j1ao****","url": "https://****.oss-cn-beijing.aliyuncs.com/heap.bin?Expires=1584785140&OSSAccessKeyId=TMP.3KfzD82FyRJevJdEkRX6JEFHhbvRBBb75PZJnyJmksA2QkMm47xFAFDgMhEV8Nm6Vxr8xExMfiy9LsUFAcLcTBrN3r****&Signature=Sj8BNcsxJLE8l5qm4cjNlDt8gv****"} |
| TaskId |
integer |
The ID of the task. |
1 |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "6623EA1F-30FB-5BC8-BEC9-74D55F6F08F1",
"AsyncTasks": [
{
"EndTime": 157927362000,
"TaskType": 5,
"StartTime": 156927362000,
"TaskParams": "{\"instanceId\": \"ddoscoo-cn-mp91j1ao****\"}",
"TaskStatus": 2,
"TaskResult": "{\"instanceId\": \"ddoscoo-cn-mp91j1ao****\",\"url\": \"https://****.oss-cn-beijing.aliyuncs.com/heap.bin?Expires=1584785140&OSSAccessKeyId=TMP.3KfzD82FyRJevJdEkRX6JEFHhbvRBBb75PZJnyJmksA2QkMm47xFAFDgMhEV8Nm6Vxr8xExMfiy9LsUFAcLcTBrN3r****&Signature=Sj8BNcsxJLE8l5qm4cjNlDt8gv****\"}",
"TaskId": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.