Modifies the IP address whitelists of a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:ModifyDBClusterAccessWhiteList |
update |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
rm-uf6wjk5xxxxxxxxxx |
| SecurityIps |
string |
Yes |
The IP addresses to add to or modify in the whitelist. Separate multiple IP addresses with commas (,). Maximum: 500. Supported formats:
Note
Required unless ModifyMode is set to Delete. |
10.23.12.24 |
| DBClusterIPArrayName |
string |
No |
The whitelist name. Default value: Default. Length: 2 to 32 characters. Allowed characters: lowercase letters, digits, and underscores (_). Must start with a lowercase letter and end with a lowercase letter or digit. Maximum: 50 whitelists per cluster. |
test |
| DBClusterIPArrayAttribute |
string |
No |
The whitelist attribute. Empty by default. The hidden attribute hides the whitelist from the console. Used by services such as DTS and PolarDB-X. |
hidden |
| ModifyMode |
string |
No |
The whitelist modification method. Valid values:
Default value: Cover. |
Cover |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TaskId |
integer |
The task ID. |
1564657730 |
| RequestId |
string |
The request ID. |
D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC |
| DBClusterId |
string |
The cluster ID. |
rm-uf6wjk5xxxxxxxxxx |
Examples
Success response
JSON format
{
"TaskId": 1564657730,
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC",
"DBClusterId": "rm-uf6wjk5xxxxxxxxxx"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SecurityIPList.Duplicate | The specified IP address is duplicate. | The specified IP address is duplicate. |
| 400 | InvalidSecurityIPList.Malformed | The specified SecurityIPList is incorrectly formatted. | The specified security group parameter is invalid. |
| 400 | InvalidSecurityIPList.Duplicate | Specified security IP list is not valid: Duplicate IP address in the list | The specified IP address is duplicate. Specify a valid IP address. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.