You can call this operation to query the DescribeAsyncTaskStatus of a WAF task.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | Boolean | No | DescribeAsyncTaskStatus |
The operation that you want to perform. Valid values: DescribeAsyncTaskStatus. |
InstanceId | String | No | waf_elasticity-cn-0xldbqtm005 |
The ID of the WAF instance. Note You can callDescribePayInfo to view your WAF instance ID.
|
WafRequestId | String | No | aliyun.waf.20180719140433783.SvaZeY |
The ID of the WAF task. |
Region | String | Yes | cn |
The ID of the region to which the WAF instance belongs. Set the value to:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 12EF3845-CCEB-4B84-AE60-2B49B2FF1EE5 |
The ID of the request. |
Result |
Responses |
||
AsyncTaskStatus | String | env |
Asynchronous task execution status:
|
Data | String | xx |
The business data returned by asynchronous tasks. |
ErrCode | String | 400 |
Error code. Note This parameter is only returned when an error occurs during request execution.
|
ErrMsg | String | xx |
The description of the error message. Note This parameter is only returned when an error occurs during request execution.
|
Progress | Integer | 90 |
The progress of the asynchronous task. Unit: percentage. |
Samples
Sample request
https://wafopenapi.cn-hangzhou.aliyuncs.com/? Action=DescribeAsyncTaskStatus
&InstanceId=waf_elasticity-cn-0xldbqtm005
&WafRequestId=aliyun.waf.20180719140433783.SvaZeY
&Common request parameters
Sample success responses
XML
format
<DescribeAsyncTaskStatusResponse>
<RequestId>12EF3845-CCEB-4B84-AE60-2B49B2FF1EE5</RequestId>
<Result>
<DomainConfig>
<Progress>100</Progress>
<AsyncTaskStatus>2</AsyncTaskStatus>
</DomainConfig>
</Result>
</DescribeAsyncTaskStatusResponse>
JSON
format
{
"Result":{
"DomainConfig":{
"AsyncTaskStatus":2,
"Progress":100
}
},
"RequestId":"12EF3845-CCEB-4B84-AE60-2B49B2FF1EE5"
}
Errors
For a list of error codes, visit the API Error Center.