Mengonfigurasi pengaturan perlindungan DDoS HTTP cerdas untuk sebuah situs.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:SetHttpDDoSAttackIntelligentProtection |
get |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID situs. Anda dapat memperoleh ID situs dengan memanggil operasi ListSites. |
123456**** |
| AiMode |
string |
Yes |
Mode untuk fitur perlindungan DDoS HTTP cerdas. Nilai valid:
|
defense |
| AiTemplate |
string |
Yes |
Tingkat sensitivitas untuk fitur perlindungan DDoS HTTP cerdas. Nilai valid:
|
level60 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
156A6B-677B1A-4297B7-9187B7-2B44792 |
| SiteId |
integer |
The site ID. |
123456**** |
| AiMode |
string |
The protection mode for the intelligent HTTP DDoS protection feature. Valid values:
|
defense |
| AiTemplate |
string |
The sensitivity level for the intelligent HTTP DDoS protection feature. Valid values:
|
level60 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"SiteId": 0,
"AiMode": "defense",
"AiTemplate": "level60"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | 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. | |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.