Resets the security groups in the whitelist of an ApsaraDB for Redis instance.
For more information about how to reset security groups in the ApsaraDB for Redis console, see Add security groups.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifySecurityGroupConfiguration |
The operation that you want to perform. Set the value to ModifySecurityGroupConfiguration. |
DBInstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
SecurityGroupId | String | Yes | sg-bpcfmyiu4ekp**** |
The ID of the security group that you want to manage. You can specify up to 10 security groups. Separate multiple security group IDs with commas (,). |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 147CAC09-E8C6-43F8-9599-982A43D6**** |
The ID of the request. |
Examples
Sample requests
http(s):/https://r-kvstore.aliyuncs.com/?Action=ModifySecurityGroupConfiguration
&DBInstanceId=r-bp1zxszhcgatnx****
&SecurityGroupId=sg-bpcfmyiu4ekp****
&<Common request parameters>
Sample success responses
XML
format
<ModifySecurityGroupConfigurationResponse>
<RequestId>147CAC09-E8C6-43F8-9599-982A43D6****</RequestId>
</ModifySecurityGroupConfigurationResponse>
JSON
format
{
"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6****"
}
Error codes
For a list of error codes, visit the API Error Center.