检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
单击“创建凭据”,填写凭据名称,此处填写“apptest”。 单击“确定”。 绑定API。注意,只有通过APP认证的API才能被绑定。 在已创建凭据所在行,单击“绑定API”。 选择环境、API分组和API。 单击“确定”,完成API绑定。 添加APPCode认证信息。
作用域:Path Item Object(2.0)/Path Item Object(3.0) 示例: paths: '/path': get: produces: - application/json responses:
Integer 单个APP流控时间内能够访问的最大次数,遵循user_call_limits>=app_call_limits CRU 否 ip_call_limits Integer 单个源IP流控时间内能够访问的最大次数,遵循api_call_limits>=ip_call_limits
Integer 单个APP流控时间内能够访问的最大次数,遵循user_call_limits>=app_call_limits CRU 否 ip_call_limits Integer 单个源IP流控时间内能够访问的最大次数,遵循api_call_limits>=ip_call_limits
to the support documentation" } 状态码: 401 Unauthorized { "error_code" : "APIG.1002", "error_msg" : "Incorrect token or token resolution failed
Integer 单个APP流控时间内能够访问API的次数限制 ip_call_limits Integer 单个IP流控时间内能够访问API的次数限制 time_interval Integer 流控的时长 time_unit String 流控的时间单位 remark String
specified, parameter name:members" } 状态码: 401 Unauthorized { "error_code" : "APIG.1002", "error_msg" : "Incorrect token or token resolution failed
": "90f05978-06a3-4096-8bea-b5e2fa12b843", "throttle_name": "throttle1", "apply_time": "2017-12-29T03:01:11.138456Z", "auth_type": "APP
to the support documentation" } 状态码: 401 Unauthorized { "error_code" : "APIG.1002", "error_msg" : "Incorrect token or token resolution failed
app_call_limits 否 Integer APP流量限制是指一个API在时长之内被每个APP访问的次数上限,该数值不超过用户流量限制值。输入的值不超过2147483647。正整数。
app_call_limits 否 Integer APP流量限制是指一个API在时长之内被每个APP访问的次数上限,该数值不超过用户流量限制值。输入的值不超过2147483647。正整数。
作用域:Swagger Object 示例: x-apigateway-ratelimits: customRatelimitName: api-limit: 200 app-limit: 200 user-limit: 200 ip-limit
String 与流控策略的绑定关系编号 throttle_name String 绑定的流控策略名称 apply_time Timestamp 已绑定的流控策略的绑定时间 auth_type String API的认证方式 req_uri String API的访问地址 响应消息样例
Integer 单个APP流控时间内能够访问API的次数限制 ip_call_limits Integer 单个IP流控时间内能够访问API的次数限制 time_interval Integer 流控的时长 time_unit String 流控的时间单位 remark String
String AppCode简易认证类型 响应消息样例: { "total": 3, "size": 3, "apis": [ { "name": "test", "type": 1, "version": "V0.0.1"
String AppCode简易认证类型 响应消息样例: { "total": 3, "size": 3, "apis": [ { "name": "test", "type": 1, "version": "V0.0.1"
specified, parameter name:members" } 状态码: 401 Unauthorized { "error_code" : "APIG.1002", "error_msg" : "Incorrect token or token resolution failed
Integer 单个APP流控时间内能够访问API的次数限制 ip_call_limits Integer 单个IP流控时间内能够访问API的次数限制 time_interval Integer 流控的时长 time_unit String 流控的时间单位 remark String
配置API调用授权(可选) API调用授权概述 配置APIG的API认证凭据 配置APIG的API简易认证AppCode
/USER CR 是 call_limits Integer 特殊对象在流控时间内能够访问API的最大次数限制 CRU 是 apply_time Timestamp 设置的时间 R - 父主题: 设置特殊流控