查詢深度學習和防護下發的頻率控制規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
是 |
網站 ID,可通過調用 ListSites 介面擷取。 |
123456**** |
| PageNumber |
integer |
是 |
當前頁碼。 |
1 |
| PageSize |
integer |
否 |
分頁大小。 |
10 |
| RuleType |
string |
否 |
規則類型。 |
cc |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| TotalCount |
integer |
總規則數。 |
100 |
| PageNumber |
integer |
當前頁碼。 |
1 |
| PageSize |
integer |
分頁大小。 |
10 |
| RuleInfos |
array<object> |
規則資訊列表。 |
|
|
object |
|||
| RuleName |
string |
規則名稱。 |
inner_cc_client_ip_ratelimit |
| RecordName |
string |
記錄名稱。 |
test.example.com |
| Action |
string |
執行動作。 |
js |
| RuleId |
integer |
規則 ID。 |
20110849 |
| RateLimit |
string |
頻次資訊。 |
{"threshold":2000,"interval":5,"target":"ip","ttl":600} |
| Statistics |
string |
統計資訊。 |
{"field":"ip","mode":"count"} |
| Condition |
string |
規則引發條件。 |
{"$and":[{"key":"URI","opValue":"prefix-match","values":"/"}]} |
| PunishTime |
integer |
處置時間。(單位:秒) |
86400 |
| LogRuleId |
integer |
防護規則 ID(日誌記錄用)。 |
100030 |
樣本
正常返回樣本
JSON格式
{
"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
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId is invalid. | 網站ID參數非法。 |
| 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. | 網站對應DDoS版本檢查失敗。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。