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

Note After you call this operation, the security groups in the whitelist of the ApsaraDB for Redis instance are deleted, and the security group specified by the SecurityGroupId parameter are added to the whitelist.

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


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 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.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6****"

Error codes

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