Query an IP Whitelist
Last Updated:2020-07-20
Description
- Query the IP whitelist with privileges to access the instances.
Request Structure
GET /v1/instance/{instanceId}/securityIp HTTP/1.1
Host: redis.{region}.baidubce.com
Authorization authorization string
Request Header Field
There are no other special header fields except the public header field.
Request Parameter
Parameter Name | Type | Required | Parameter Position | Description |
---|---|---|---|---|
version | string | Yes | URI Parameter | API version No. |
instanceId | string | Yes | URI Parameter | Instance ID to be queried |
Request Example
GET /v1/instance/scs-bj-ykfiztgpxjny/securityIp HTTP/1.1
HOST: redis.bj.baidubce.com
ContentType: application/json
Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Return Header Field
There are no other special header fields except the public header field.
Return Parameters
Parameter Name | Type | Description |
---|---|---|
securityIps | list |
IP whitelist list, including common addresses: Such as 192.168.0.1; CIDR address: Such as 192.168.1.0/24; 0.0.0.0/0 represents all addresses |
Return Example
{
"securityIps": [
"0.0.0.0/0",
"192.0.0.1",
"192.168.0.1",
"192.168.1.0/24"
]
}