Deletes multiple Web Application Firewall (WAF) protection rules at a time.

Description

  • You can call this operation up to 20 times per second per account.
  • Alibaba Cloud Dynamic Route for CDN (DCDN) supports POST requests.

Debugging

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 String Yes BatchDeleteDcdnWafRules

The operation that you want to perform. Set the value to BatchDeleteDcdnWafRules.

RuleIds String Yes 20000001,20000002

The IDs of the protection rules that you want to delete. Separate multiple IDs with commas (,).

Response parameters

Parameter Type Example Description
RequestId String CB1A380B-09F0-41BB-802B-72F8FD6DA2FE

The ID of the request.

Examples

Sample requests

curl -XPOST 'https://dcdn.aliyuncs.com/?Action=BatchDeleteDcdnWafRules
&RuleIds=20000001,20000002
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<BatchDeleteDcdnWafRulesResponse>
    <RequestId>CB1A380B-09F0-41BB-802B-72F8FD6DA2FE</RequestId>
</BatchDeleteDcdnWafRulesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "CB1A380B-09F0-41BB-802B-72F8FD6DA2FE"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidParameter The specified parameter is invalid. The error message returned because the specified parameter value is invalid.
500 InternalError An internal error occurred; please try again later. The error message returned because an internal error occurred. Try again later. If the error persists, submit a ticket.

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