更新该网关并发规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:UpdateGatewayIsolationRule |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Id |
integer |
是 |
并发规则 ID。 |
358 |
| GatewayId |
integer |
否 |
网关 ID。 |
14407 |
| GatewayUniqueId |
string |
是 |
网关唯一标识 ID。 |
gw-e2d226bba4b2445c9e29fa7f8216**** |
| RouteId |
integer |
是 |
路由 ID。 |
52853 |
| RouteName |
string |
是 |
路由名称。 |
routeName |
| MaxConcurrency |
integer |
是 |
总体并发数阈值。 |
100 |
| BehaviorType |
integer |
是 |
Web fallback 行为类型。 0:返回指定内容。 1:跳转到指定页面。 |
0 |
| BodyEncoding |
integer |
否 |
编码类型。 0:普通文本。 1:JSON。 |
0 |
| ResponseStatusCode |
integer |
否 |
HTTP 状态码。 |
429 |
| ResponseContentBody |
string |
否 |
HTTP 返回文本。 |
text |
| ResponseRedirectUrl |
string |
否 |
跳转路径。 |
www.******.com |
| Enable |
integer |
是 |
是否开启。 0:不开启。 1:开启。 |
0 |
| AcceptLanguage |
string |
否 |
返回结果显示的语言。取值:zh(默认值):中文,en:英文 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RestResult |
||
| RequestId |
string |
请求 ID。 |
94B12406-E44D-57C9-BF93-A8B35BFF**** |
| Data |
object |
返回数据。 |
|
| Id |
integer |
并发规则 ID。 |
358 |
| GatewayId |
integer |
网关 ID。 |
14407 |
| GatewayUniqueId |
string |
网关唯一标识 ID。 |
gw-e2d226bba4b2445c9e29fa7f8216**** |
| RouteId |
integer |
路由 ID。 |
52853 |
| RouteName |
string |
路由名称。 |
routeName |
| MaxConcurrency |
integer |
总体并发数阈值。 |
100 |
| LimitMode |
integer |
阈值转化模式。 0:单机。 1:集群。 2:集群转单机。 |
0 |
| BehaviorType |
integer |
Web fallback 行为类型。 0:返回指定内容。 1:跳转到指定页面。 |
0 |
| BodyEncoding |
integer |
编码类型。 0:普通文本。 1:JSON。 |
0 |
| ResponseStatusCode |
integer |
HTTP 状态码。 |
429 |
| ResponseContentBody |
string |
HTTP 返回文本。 |
text |
| ResponseRedirectUrl |
string |
跳转路径。 |
www.******.com |
| ResponseAdditionalHeaders |
string |
自定义 header,输入为 key-value 键值对。 |
key=value |
| Enable |
integer |
是否开启。 0:不开启。 1:开启。 |
0 |
| IdList |
array |
筛选规则 id |
|
|
integer |
规则 ID。 |
358 |
示例
正常返回示例
JSON格式
{
"RequestId": "94B12406-E44D-57C9-BF93-A8B35BFF****",
"Data": {
"Id": 358,
"GatewayId": 14407,
"GatewayUniqueId": "gw-e2d226bba4b2445c9e29fa7f8216****",
"RouteId": 52853,
"RouteName": "routeName",
"MaxConcurrency": 100,
"LimitMode": 0,
"BehaviorType": 0,
"BodyEncoding": 0,
"ResponseStatusCode": 429,
"ResponseContentBody": "text",
"ResponseRedirectUrl": "www.******.com",
"ResponseAdditionalHeaders": "key=value",
"Enable": 0,
"IdList": [
358
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。