API网关 APIG-绑定流控策略:响应消息

时间:2025-01-26 10:51:08

响应消息

表4 参数说明

名称

类型

说明

throttle_applys

字典数据类型

API与流控策略的绑定关系列表

表5 throttle_applys参数说明

名称

类型

说明

id

String

绑定关系的ID。

strategy_id

String

流控策略的ID。

publish_id

String

API的发布记录编号

scope

Integer

策略作用域,取值如下:

  • 1: 整个API
  • 2: 单个用户
  • 3: 单个APP

目前只支持1

apply_time

Timestamp

绑定时间

响应消息样例:

{"throttle_applys": [{"id": "507c6a9f-8322-4dc2-8ba5-b4d74e3690d3","strategy_id": "0325b671-2d50-4614-9868-22102262695d","publish_id": "374a6d5a-20c7-4ea1-82e1-19fce4556956","scope": 1,"apply_time": "2017-12-29T03:01:11.138456Z"},{"id": "90f05978-06a3-4096-8bea-b5e2fa12b843","strategy_id": "0325b671-2d50-4614-9868-22102262695d","publish_id": "65e6fe53-1ac3-4481-ba36-9f0bc6f22057","scope": 1,"apply_time": "2017-12-29T03:01:11.138456Z"}]}
support.huaweicloud.com/api-apig/apig-phapi-180713072.html