Modify the IP address whitelist of an RDS instance

Last Updated: Sep 14, 2017

Description

Modify the list of IP addresses that are allowed to access an instance. The following conditions must be met, or the operation will fail:

  • The instance is running.

  • The instance is not locked.

Request parameters

Name Type Required? Description
Action String Yes Required parameter. Value: ModifySecurityIps.
DBInstanceId String Yes Instance ID.
SecurityIps String No List of IP addresses under the IP address whitelist array. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
DBInstanceIPArrayName String No Name of an IP address whitelist array. If no value is specified, the “Default” array is used.
Note: One instance supports 50 whitelist arrays at most.
DBInstanceIPArrayAttribute String No This parameter is left blank by default. This parameter differentiates attribute values. The console does not display arrays labeled with “hidden”.

Return parameters

Name Type Description
<Public Return Parameters> - For details, see Public parameters.

Example

  • Request example

    1. https://rds.aliyuncs.com/?Action=ModifySecurityIps
    2. &DBInstanceId=rdsaiiabnaiiabn
    3. &SecurityIps=192.168.1.2
    4. &<Public Request Parameters>
  • Return example

    XML format:

    1. <ModifySecurityIpsResponse>
    2. <RequestId>65BDA532-28AF-4122-AA39-B382721EEE64</RequestId>
    3. </ModifySecurityIpsResponse>

    JSON format:

    1. {
    2. "RequestId": " 65BDA532-28AF-4122-AA39-B382721EEE64"
    3. }
Thank you! We've received your feedback.