Deletes a protection policy.
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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteDcdnWafPolicy |
The operation that you want to perform. Set the value to DeleteDcdnWafPolicy. |
PolicyId | Long | Yes | 1000001 |
The ID of the protection policy that you want to delete. You can specify only one ID in each request. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CB1A380B-09F0-41BB-B084-72F8FD6DA2FE |
The ID of the request. |
Examples
Sample requests
curl -XPOST 'https://dcdn.aliyuncs.com/?Action=DeleteDcdnWafPolicy
&PolicyId=1000001
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteDcdnWafPolicyResponse>
<RequestId>CB1A380B-09F0-41BB-B084-72F8FD6DA2FE</RequestId>
</DeleteDcdnWafPolicyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "CB1A380B-09F0-41BB-B084-72F8FD6DA2FE"
}
Error codes
HTTP status code | Error codes | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | The error message returned because the specified parameter value is invalid. |
400 | Policy.NotExist | The specified policy does not exist. | The error message returned because the specified protection policy does not exist. |
400 | Policy.DeleteForbidden | The specified policy is forbidden to delete. | The error message returned because the specified policy cannot be deleted. |
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.