You can call this operation to modify the IP addresses that are allowed to access an instance.
Before you call this operation, make sure that the following requirements are met:
- The instance is in the Running state.
- The instance is not locked.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifySecurityIps |
The operation that you want to perform. Set the value to ModifySecurityIps. |
DBInstanceId | String | Yes | gp-xxxxxxxxx |
The ID of the instance. |
SecurityIPList | String | Yes | 127.0.0.1 |
The IP addresses listed in the whitelist. You can add up to 1,000 IP addresses to the whitelist. Separate multiple IP addresses with commas (,). The IP addresses must use one of the following formats:
|
DBInstanceIPArrayName | String | No | Default |
The name of the whitelist. If you do not enter a name, IP addresses are added to the default whitelist. Note You can create up to 50 whitelists for an instance.
|
DBInstanceIPArrayAttribute | String | No | hidden |
This parameter is empty by default. You can use this parameter to distinguish whitelists
that have different attributes. The whitelists that have the |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 871C698F-B43D-4D1D-ACD6-DF56B0F89978 |
The ID of the request. |
Examples
Sample requests
https://gpdb.aliyuncs.com/?Action=ModifySecurityIps
&DBInstanceId=gp-xxxxxxxxx
&SecurityIPList=127.0.0.1
&<common request parameters>
Sample success responses
XML
format
<ModifySecurityIpsResponse>
<RequestId>871C698F-B43D-4D1D-ACD6-DF56B0F89978</RequestId>
</ModifySecurityIpsResponse>
JSON
format
{
"RequestId":"871C698F-B43D-4D1D-ACD6-DF56B0F89978"
}
Error codes
For a list of error codes, visit the API Error Center.