ゲートウェイの速度制限ルールを更新します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:UpdateGatewayFlowRule |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Id |
integer |
必須 |
速度制限ルールの ID。 |
549 |
| GatewayId |
integer |
任意 |
ゲートウェイ ID。 |
14407 |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID。 |
gw-e2d226bba4b2445c9e29fa7f8216**** |
| RouteId |
integer |
必須 |
ルート ID。 |
48811 |
| RouteName |
string |
必須 |
ルート名。 |
routeA |
| Threshold |
integer |
必須 |
全体的なクエリ/秒 (QPS) しきい値。 |
10 |
| BehaviorType |
integer |
必須 |
Web フォールバック動作のタイプ。 0: 指定されたテキストを返します 1: 指定されたページにリダイレクトします |
0 |
| BodyEncoding |
integer |
任意 |
エンコーディングタイプ。 0: プレーンテキスト 1: JSON |
0 |
| ResponseStatusCode |
integer |
任意 |
HTTP ステータスコード。 |
429 |
| ResponseContentBody |
string |
任意 |
返される HTTP テキスト。 |
text |
| ResponseRedirectUrl |
string |
任意 |
リダイレクト URL。 |
www.******.com |
| Enable |
integer |
必須 |
ルールを有効にするかどうかを指定します。 0: ルールを無効にします。 1: ルールを有効にします。 |
0 |
| AcceptLanguage |
string |
任意 |
結果を表示する言語。有効な値:zh(デフォルト):中国語。en:英語。 |
zh |
レスポンスフィールド
|
パラメーター |
型 |
説明 |
例 |
|
object |
RestResult<gatewayrouteflowrule> |
||
| RequestId |
string |
リクエスト ID。 |
2B74E7F7-DF54-5AB1-B8F2-67391B83**** |
| Data |
object |
レスポンスデータ。 |
|
| Id |
integer |
速度制限ルールの ID。 |
549 |
| GatewayId |
integer |
ゲートウェイ ID。 |
14407 |
| GatewayUniqueId |
string |
ゲートウェイの一意の ID。 |
gw-e2d226bba4b2445c9e29fa7f8216**** |
| RouteId |
integer |
ルート ID。 |
48811 |
| RouteName |
string |
ルート名。 |
routeA |
| Threshold |
integer |
全体的なクエリ/秒 (QPS) しきい値。 |
10 |
| StatDurationMs |
integer |
統計の期間。 |
10 |
| LimitMode |
integer |
しきい値変換モード。 0: スタンドアロン。 1: クラスタ。 2: クラスタからスタンドアロン。 |
0 |
| BehaviorType |
integer |
Web フォールバック動作のタイプ。 0: 指定されたコンテンツが返されます。 1: 指定されたページが表示されます。 |
0 |
| BodyEncoding |
integer |
エンコーディングタイプ。 0: プレーンテキスト 1: JSON |
0 |
| ResponseStatusCode |
integer |
HTTP ステータスコード。 |
429 |
| ResponseContentBody |
string |
HTTP 戻りテキスト。 |
Text |
| ResponseRedirectUrl |
string |
リダイレクト URL。 |
www.******.com |
| ResponseAdditionalHeaders |
string |
カスタムヘッダー。入力はキーと値のペアです。 |
key=value |
| Enable |
integer |
ルールを有効にするかどうかを指定します。 0: ルールは有効になっていません。 1: ルールは有効になっています。 |
0 |
| IdList |
array |
データをフィルタリングするために使用されるサーキットブレーキングルールの ID。 |
|
|
integer |
ルール ID。 |
549 |
例
成功レスポンス
JSONJSON
{
"RequestId": "2B74E7F7-DF54-5AB1-B8F2-67391B83****",
"Data": {
"Id": 549,
"GatewayId": 14407,
"GatewayUniqueId": "gw-e2d226bba4b2445c9e29fa7f8216****",
"RouteId": 48811,
"RouteName": "routeA",
"Threshold": 10,
"StatDurationMs": 10,
"LimitMode": 0,
"BehaviorType": 0,
"BodyEncoding": 0,
"ResponseStatusCode": 429,
"ResponseContentBody": "Text",
"ResponseRedirectUrl": "www.******.com",
"ResponseAdditionalHeaders": "key=value",
"Enable": 0,
"IdList": [
549
]
}
}
エラーコード
|
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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。