Mengambil aturan kontrol frekuensi yang dihasilkan oleh Deep Learning and Protection.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID situs. Dapatkan nilai ini dengan memanggil operasi ListSites. |
123456**** |
| PageNumber |
integer |
Yes |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
| RuleType |
string |
No |
Tipe aturan. |
cc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| TotalCount |
integer |
Jumlah total aturan. |
100 |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| RuleInfos |
array<object> |
Daftar aturan. |
|
|
object |
|||
| RuleName |
string |
Nama aturan. |
inner_cc_client_ip_ratelimit |
| RecordName |
string |
Nama record. |
test.example.com |
| Action |
string |
Aksi yang akan dilakukan. |
js |
| RuleId |
integer |
ID aturan. |
20110849 |
| RateLimit |
string |
Informasi frekuensi. |
{"threshold":2000,"interval":5,"target":"ip","ttl":600} |
| Statistics |
string |
Statistik. |
{"field":"ip","mode":"count"} |
| Condition |
string |
Kondisi yang memicu aturan. |
{"$and":[{"key":"URI","opValue":"prefix-match","values":"/"}]} |
| PunishTime |
integer |
Durasi hukuman dalam detik. |
86400 |
| LogRuleId |
integer |
ID aturan proteksi untuk catatan log. |
100030 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"RuleInfos": [
{
"RuleName": "inner_cc_client_ip_ratelimit",
"RecordName": "test.example.com",
"Action": "js",
"RuleId": 20110849,
"RateLimit": "{\"threshold\":2000,\"interval\":5,\"target\":\"ip\",\"ttl\":600}",
"Statistics": "{\"field\":\"ip\",\"mode\":\"count\"}",
"Condition": "{\"$and\":[{\"key\":\"URI\",\"opValue\":\"prefix-match\",\"values\":\"/\"}]}",
"PunishTime": 86400,
"LogRuleId": 100030
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId 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.