Delete Whitelist
Last Updated:2021-08-30
Delete the whitelist
Delete the whitelist record for the specified instance.
Description
- You cannot delete the instance unless it is in the running state.
Request structure
PUT /v{version}/instance/{dbInstanceId}?deleteSecurityIps HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: authorization string
{
"securityIps":[
"ip1",
"ip2"
]
}
Request header field
No other special header fields are available, except for common header fields.
Request parameter
Parameter Name | Type | Required? | Parameter Position | Description |
---|---|---|---|---|
Version | String | Yes | URL parameter | API version number |
dbInstanceId | string | Yes | URL parameter | The designated instance Id |
securityIps | List string | Yes | RequestBody parameter | The whitelist IP list to be deleted. |
Return header field
There are no other special header fields except for the common header field.
Return parameter
No other special header fields are available except for the common header fields.
Request example
PUT /v1/instance/m-qNlWTz?deleteSecurityIps HTTP/1.1
HOST: mongodb.bj.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"securityIps":[
"192.168.0.1/24",
"0.0.0.0/0"
]
}
Return example
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
Content-Length: 0