Sets the HTTP DDoS attack protection level for a website.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:SetHttpDDoSAttackProtection |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The website ID. Call the ListSites operation to query the ID. |
123456**** |
| GlobalMode |
string |
Yes |
The level of HTTP DDoS attack protection. Valid values:
|
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
C370DAF1-C838-4288-A1A0-9A87633D248E |
| SiteId |
integer |
The website ID. |
123456**** |
| GlobalMode |
string |
The level of HTTP DDoS attack protection. |
default |
Examples
Success response
JSON format
{
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E",
"SiteId": 0,
"GlobalMode": "default\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 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.