查看网关限速规则
更新时间:2024-05-24
描述
查看网关限速规则列表。
请求结构
Text
1GET /v{version}/gateway/limitrule HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,当前取值1 |
serviceType | String | 否 | Query参数 | 服务类型 peerconn-对等连接 et-专线网关 csn-云智能网 |
name | String | 否 | Query参数 | 按名称模糊查询 |
glrId | String | 否 | Query参数 | 按规则id模糊查询 |
resourceId | String | 否 | Query参数 | 按资源id模糊查询 |
marker | String | 否 | Query参数 | 标记从哪个地方开始查询,取glrId的值 |
maxKeys | String | 否 | Query参数 | 一页大小,默认值1000 |
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
result | List<GlrItem> | 限流规则列表 |
marker | String | 标记查询的起始位置 |
isTruncated | Boolean | true表示后面还有数据,false表示已经是最后一页 |
maxKeys | Integer | 每页包含的最大数量 |
nextMarker | String | 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 |
请求示例
Text
1GET /v1/gateway/limitrule?serviceType=peerconn&name=pi-3&glrId=&resourceId=&maxKeys= HTTP/1.1
2Host: bcc.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1d
返回示例
Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2014 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6
7{
8 "result": [
9 {
10 "glrId": "glr-4hx7it9zefjn",
11 "ipVersion": "4",
12 "name": "fapi-3",
13 "description": "test-createfrom-api-description",
14 "serviceType": "peerconn",
15 "subServiceType": "peerconn",
16 "resourceId": "qpif-yyjnxpqvecvg",
17 "direction": "egress",
18 "cidr": "192.168.0.14/32",
19 "bandwidth": 1,
20 "enable": true,
21 "createdTime": "2024-05-06T12:02:54Z",
22 "updatedTime": "2024-05-06T12:02:54Z"
23 }
24 ],
25 "marker": null,
26 "isTruncated": false,
27 "maxKeys": 1000
28}