ディープラーニングと保護によって生成された頻度制御ルールを照会します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteId |
integer |
必須 |
サイト ID です。ListSites 操作を呼び出して取得します。 |
123456**** |
| PageNumber |
integer |
必須 |
現在のページ番号です。 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数です。 |
10 |
| RuleType |
string |
任意 |
ルールタイプです。 |
cc |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID です。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| TotalCount |
integer |
ルールの総数です。 |
100 |
| PageNumber |
integer |
現在のページ番号です。 |
1 |
| PageSize |
integer |
1 ページあたりのエントリ数です。 |
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 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。