CreateGatewayCircuitBreakerRule
创建网关熔断规则
服务地址:
华东1 金融云
输入参数
只看必填
GatewayId网关ID
GatewayUniqueId网关唯一标识ID
RouteId路由ID
RouteName路由名称
Strategy阈值类型
TriggerRatio触发熔断百分比
StatDurationSec熔断统计时长
RecoveryTimeoutSec熔断恢复时长
MinRequestAmount触发熔断的最小请求数
MaxAllowedMs慢调用模式下慢调用阈值
BehaviorTypeWeb fallbac行为类型
BodyEncoding编码类型
ResponseStatusCodeHTTP状态码
ResponseContentBodyHTTP返回文本
ResponseRedirectUrl跳转地址
Enable是否开启
AcceptLanguage返回结果显示的语言
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

请求参数

字段名称字段详情
GatewayIdinteger<int64>

网关 ID。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:14407参考取值来源:
    GetGateway
    ListGateway
    UpdateGatewayFlowRule
    GatewayBlackWhiteList
GatewayUniqueIdstring

网关唯一标识 ID。

示例值:gw-c9bc5afd61014165bd58f621b491*****参考取值来源:
    UpdateGatewayIsolationRule
    AddGatewayRoute
    ListGateway
    CreateGatewayIsolationRule
    GetGatewayAuthDetail
    GatewayBlackWhiteList
RouteIdinteger<int64>

路由 ID。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:645参考取值来源:
    ListGatewayRoute
RouteNamestring

路由名称。

示例值:routeName参考取值来源:
    ListGatewayRouteOnAuth
Strategyinteger<int32>

阈值类型。展开详情

示例值:0
TriggerRatiointeger<int32>

触发熔断百分比。

示例值:10
StatDurationSecinteger<int32>

熔断统计时长。

示例值:11
RecoveryTimeoutSecinteger<int32>

熔断恢复时长。

示例值:12
MinRequestAmountinteger<int32>

触发熔断的最小请求数。

示例值:10
MaxAllowedMsinteger<int32>

慢调用模式下慢调用阈值。

示例值:10
BehaviorTypeinteger<int32>

Web fallbac 行为类型。展开详情

示例值:0
BodyEncodinginteger<int32>

编码类型。展开详情

示例值:0
ResponseStatusCodeinteger<int32>

HTTP 状态码。

示例值:429
ResponseContentBodystring

HTTP 返回文本。

示例值:text
ResponseRedirectUrlstring

跳转地址。

示例值:www.******.com
Enableinteger<int32>

是否开启。展开详情

示例值:0
AcceptLanguagestring

返回结果显示的语言。取值:zh(默认值):中文,en:英文

示例值:zh

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:DC34E4A3-5F1C-4E40-86EA-02EDF967****
Datainteger<int64>

返回规则 ID。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:28
变更历史
暂无变更历史