You can call this operation to query the DescribeAsyncTaskStatus of a WAF task.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • cn: mainland China (default)
  • cn-hongkong: areas outside mainland China

Response parameters

Parameter Type Example Description
RequestId String 12EF3845-CCEB-4B84-AE60-2B49B2FF1EE5

The ID of the request.



AsyncTaskStatus String env

Asynchronous task execution status:

  • 0: indicates that the request is pending execution.
  • 1: indicates that the request is being executed.
  • 2: indicates that the request has been completed.
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.


Sample request Action=DescribeAsyncTaskStatus
&Common request parameters

Sample success responses

XML format


JSON format



For a list of error codes, visit the API Error Center.