HTTP リクエストのホット パラメーター保護ルールをクエリします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:ListWebFlowRules |
list |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Namespace |
string |
任意 |
名前空間。 |
default |
| AppName |
string |
必須 |
アプリケーション名。 |
spring-cloud-a |
| ResourceSearchKey |
string |
任意 |
保護ルールから検索できるインターフェース キーワード。このパラメーターは、Resource パラメーターと相互に排他的です。 |
flow |
| AppId |
string |
任意 |
アプリケーション ID。 |
b22qb1****@2f0586be4b1**** |
| Resource |
string |
任意 |
保護ルールが適用されるインターフェース。このパラメーターは ResourceSearchKey パラメーターと相互に排他的です。 |
/flow |
| PageIndex |
integer |
任意 |
エクスポートする最初のページ。デフォルト値: 1。 |
1 |
| PageSize |
integer |
任意 |
各ページに返すエントリの数。 |
10 |
| AcceptLanguage |
string |
任意 |
返される結果が表示される言語。有効な値: zh (デフォルト): 中国語。 en: 英語。 |
zh |
レスポンスフィールド
|
パラメーター |
型 |
説明 |
例 |
|
object |
|||
| Code |
integer |
レスポンス コード。 |
200 |
| Message |
string |
返されたメッセージ。 |
OK |
| RequestId |
string |
リクエスト ID。 |
4AE73569-304C-5AA9-AE11-C1D99C7D1689 |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| Data |
object |
返されたデータ。 |
|
| Result |
array |
返された結果。 |
|
|
object |
ルール情報 |
||
| Namespace |
string |
名前空間。 |
default |
| StatIntervalMs |
integer |
タイム ウィンドウの長さ。単位: ミリ秒。 |
1000 |
| RuleId |
string |
ルール ID。 |
1 |
| AppName |
string |
アプリケーション名。 |
spring-cloud-a |
| Resource |
string |
インターフェース リソースの名前。 |
/flow |
| ResourceType |
integer |
リソース タイプ
|
1 |
| ControlBehavior |
integer |
フロー制御方式。有効な値:
|
0 |
| Burst |
integer |
バースト リクエストで許可される追加リクエストの数。この効果は、トークン バケット アルゴリズムの最大トークン数と同等です。 |
0 |
| MaxQueueingTimeMs |
integer |
ControlBehavior パラメーターが 2 に設定されている場合のキューイングのタイムアウト期間。単位: ミリ秒。 |
200 |
| ResourceMode |
integer |
リソース モード。有効な値:
|
0 |
| Threshold |
number |
しきい値。 |
20 |
| Enable |
boolean |
ルールが有効か無効かを示します。
|
true |
| ParamItem |
string |
パラメーター記述アイテム。これは、次のキーと値のペアを含む JSON 文字列です。
|
{"fieldName":"testKey","matchStrategy":2,"parseStrategy":2,"pattern":"testValue"} |
| AppId |
string |
アプリケーション ID。 |
hkhon1XXXX@c3df23522bXXXXX |
| MetricType |
integer |
しきい値のタイプ。有効な値:
|
1 |
| RegionId |
string |
リージョン ID。 |
cn-hangzhou |
| FallbackObject |
string |
ルールにバインドされた動作。 |
{\"appName\":\"spring-cloud-a\",\"fallbackBehavior\":{\"webFallbackMode\":0,\"webRespContentType\":0,\"webRespMessage\":\"Blocked\",\"webRespStatusCode\":429},\"id\":977,\"name\":\"Fallback\",\"namespace\":\"default\",\"resourceClassification\":1} |
| PageNumber |
integer |
ページ番号。 |
1 |
| PageSize |
integer |
1 ページあたりに返されるエントリの数。 |
10 |
| TotalSize |
integer |
クエリされたルールの総数。 |
36 |
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
例
成功レスポンス
JSONJSON
{
"Code": 200,
"Message": "OK",
"RequestId": "4AE73569-304C-5AA9-AE11-C1D99C7D1689",
"Success": true,
"Data": {
"Result": [
{
"Namespace": "default",
"StatIntervalMs": 1000,
"RuleId": "1",
"AppName": "spring-cloud-a",
"Resource": "/flow",
"ResourceType": 1,
"ControlBehavior": 0,
"Burst": 0,
"MaxQueueingTimeMs": 200,
"ResourceMode": 0,
"Threshold": 20,
"Enable": true,
"ParamItem": "{\"fieldName\":\"testKey\",\"matchStrategy\":2,\"parseStrategy\":2,\"pattern\":\"testValue\"}",
"AppId": "hkhon1XXXX@c3df23522bXXXXX",
"MetricType": 1,
"RegionId": "cn-hangzhou",
"FallbackObject": "{\\\"appName\\\":\\\"spring-cloud-a\\\",\\\"fallbackBehavior\\\":{\\\"webFallbackMode\\\":0,\\\"webRespContentType\\\":0,\\\"webRespMessage\\\":\\\"Blocked\\\",\\\"webRespStatusCode\\\":429},\\\"id\\\":977,\\\"name\\\":\\\"Fallback\\\",\\\"namespace\\\":\\\"default\\\",\\\"resourceClassification\\\":1}"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalSize": 36
},
"HttpStatusCode": 200
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。