Resets the security groups in the whitelist of an ApsaraDB for Redis instance.

You can call this operation to remove the original security groups from the whitelist of an ApsaraDB for Redis instance and adds security groups that are specified by the SecurityGroupId parameter to the whitelist.

For more information about how to reset security groups in the ApsaraDB for Redis console, see Add security groups.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifySecurityGroupConfiguration

The operation that you want to perform. Set the value to ModifySecurityGroupConfiguration.

DBInstanceId String Yes r-bp********

The ID of the instance.

SecurityGroupId String Yes sg-bp********

The IDs of the security groups. 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-982A43D6EBF3

The ID of the request.

Examples

Sample requests

http(s):/https://r-kvstore.aliyuncs.com/?Action=ModifySecurityGroupConfiguration
&DBInstanceId=r-bp********
&SecurityGroupId=sg-bp********
&<Common request parameters>

Sample success responses

XML format

<ModifySecurityGroupConfigurationResponse>
      <RequestId>147CAC09-E8C6-43F8-9599-982A43D6EBF3</RequestId>
</ModifySecurityGroupConfigurationResponse>

JSON format

{
	"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6EBF3"
}

Error codes

For a list of error codes, visit the API Error Center.