查询监听器策略
更新时间:2022-06-24
接口描述
本接口用于查询监听器策略。
请求结构
Plain Text
1GET /v2/appblb/{blbId}/policys?marker={marker}&maxKeys={maxKeys}&port={port}&type={type} HTTP/1.1
2Host: bec.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
---|---|---|---|---|
blbId | 负载均衡ID | path | 是 | string |
port | BLB下监听器端口号 | query | 是 | integer |
marker | 标记查询的起始位置 | query | 否 | string |
maxKeys | 每页包含的最大数量,1-1000,默认1000 | query | 否 | integer |
type | 当监听器端口下有多个协议时,type必传 | query | 否 | string |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 参数说明 | 类型 |
---|---|---|
isTruncated | true表示后面还有数据,false表示已经是最后一页 | boolean |
marker | 标记查询的起始位置 | string |
maxKeys | 每页包含的最大数量 | integer |
nextMarker | 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 | string |
policyList | APPBLB监听策略列表 | array |
appIpGroupId | 策略绑定IP组标识符 | string |
appIpGroupName | 策略绑定IP组名称 | string |
desc | 策略描述默认为空 | string |
frontendPort | 监听端口 | integer |
id | 策略标识符 | string |
priority | 优先级 | integer |
ruleList | 策略规则列表 | array |
key | 规则的类型,如host/uri/* | string |
value | 通配符匹配字符串,如*.baidu.com | string |
type | 前端服务器的监听端口协议 | string |
错误码
请参照错误返回章节的内容。
请求示例
Plain Text
1GET /v2/appblb/applb-cn-hangzhou-cm-cmqypbkj/policys?port=80 HTTP/1.1
2Host: bec.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 08 Jul 2015 03:28:11 GMT
4x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
5Server: BWS
6
7{
8 "marker": null,
9 "isTruncated": false,
10 "nextMarker": null,
11 "maxKeys": 1000,
12 "policyList": [
13 {
14 "id": "bec_policy-zc3gkmck",
15 "desc": "desc",
16 "appIpGroupId": "bec_ip_group-r8yc3lg1",
17 "appIpGroupName": "ipgroupametest",
18 "frontendPort": 80,
19 "type": "TCP",
20 "priority": 1,
21 "ruleList": [
22 {
23 "key": "*",
24 "value": "*"
25 }
26 ]
27 }
28 ]
29}