Modifies the protection action Settings for a specified HTTP DDoS attack prevention rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:SetHttpDDoSAttackRuleAction |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The ID of the site. You can call the ListSites operation to query the ID. |
123456**** |
| RuleIds |
string |
Yes |
The IDs of the rules to be managed. Separate multiple IDs with commas (,). Note
You can call the DescribeHttpDDoSAttackRules operation to query the IDs. |
100000 |
| RuleAction |
string |
Yes |
The action of the rule. Valid values:
Valid values:
|
js |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
C370DAF1-C838-4288-A1A0-9A87633D2*** |
Examples
Success response
JSON format
{
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D2***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId is invalid. | The specified SiteId is invalid.Check parameter SiteId and try again. |
| 400 | ErrSiteIdNoteEnterprise | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. | Failed to check the DDoS version corresponding to the site. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.