Update the Whitelist
Last Updated:2021-08-06
Description
All whitelists need to be updated. You need to add all whitelists every time.
Request Structure
PUT /v{version}/instance/{instanceId}/securityIp HTTP/1.1
HOST: rds.bj.baidubce.com
x-bce-if-match: {ETag}
Authorization: authorization string
{
"securityIps": securityIps
}
Header field
Parameter name | Type | Description |
---|---|---|
x-bce-if-match | string | ETag value obtained through the query interface |
Query Parameters
Parameter Name | Type | Required? | Parameter Position | Description |
---|---|---|---|---|
version | string | Yes | URL Parameter | API version number |
instanceId | string | Yes | URL Parameter | Instance ID |
securityIps | List String | Yes | RequestBody parameter | IP whitelist |
Return a header field
There are no other special header fields except the common header field.
Return Parameter
No special return parameters.
Request Example
PUT /v1/instance/r-dnubrhaqp/securityIp HTTP/1.1
HOST: rds.bj.baidubce.com
x-bce-if-match: V11
Authorization: bce-auth-v1/rdsak/2016-07-03T06:13:13Z/1800/x-bce-date/{signature}
{
"securityIps": [
"127.0.0.1", "%", "192.168.0.1/24"
]
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
Content-Length 0