Mengonfigurasi perlindungan serangan HTTP DDoS untuk sebuah situs web.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:SetHttpDDoSAttackProtection |
get |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID situs web, yang dapat diperoleh dengan memanggil operasi ListSites. |
123456**** |
| GlobalMode |
string |
Yes |
Tingkat perlindungan serangan HTTP DDoS. Nilai yang valid:
|
default |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
C370DAF1-C838-4288-A1A0-9A87633D248E |
| SiteId |
integer |
ID situs web. |
123456**** |
| GlobalMode |
string |
Tingkat perlindungan serangan HTTP DDoS. |
default |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E",
"SiteId": 0,
"GlobalMode": "default\n"
}
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.