Sets the protection action for specified HTTP DDoS attack protection rules.
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 |
Site ID, which can be obtained by calling the ListSites API. |
123456**** |
| RuleIds |
string |
Yes |
Rule IDs to configure, separated by commas (,). Note
You can call the DescribeHttpDDoSAttackRules API to get this parameter. |
100000 |
| RuleAction |
string |
Yes |
Protection action. Valid values:
|
js |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response Schema |
||
| RequestId |
string |
Request ID |
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.