查询指定的IP地址组
更新时间:2024-12-27
描述
查询指定的IP地址组。
请求结构
Plain Text
1GET /v{version}/ipSet/{ipSetId} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,目前取值为1 |
ipSetId | String | 是 | URL参数 | IP地址组的ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
ipSetId | String | IP地址组的ID |
name | String | IP地址组的名称 |
description | String | IP地址组的描述 |
ipVersion | String | ipVersion,取值IPv4或IPv6 |
ipAddressInfo | List<TemplateIpAddressInfo> | 参数模板IP地址信息 |
bindedInstances | List<IpCollectionBindedInstance> | IP地址组绑定的实例 |
请求示例
Plain Text
1GET /v1/ipSet/ips-w2d4kgc3x0y1 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-03-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3Date: Mon, 02 Apr 2019 08:14:25 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "ipSet": "ips-w2d4kgc3x0y1",
8 "name": "test_ipSet",
9 "description": "",
10 "ipVersion": "IPv4",
11 "ipAddressInfo": [{
12 "ipAddress": "10.101.151.17",
13 "description": "ip address description"
14 }],
15 "bindedInstances": [{
16 "instanceId": "esg-w2kmnu1peqxg",
17 "instanceType": "ESG"
18 },
19 {
20 "instanceId": "esg-7c9yzhkfn9c2",
21 "instanceType": "ESG"
22 }
23 ]
24}