Queries the security groups that are included in the whitelist of an ApsaraDB for Redis instance.


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 DescribeSecurityGroupConfiguration

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

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
Items Array of EcsSecurityGroupRelation

The list of security groups.

NetType String vpc

The network type of the security group. Valid values:

  • classic: the classic network.
  • vpc: the virtual private cloud (VPC).
RegionId String cn-hangzhou

The ID of the region where the instance is deployed.

SecurityGroupId String sg-bp14p9y07ns3gwq****

The ID of the security group.

RequestId String 981C0D6A-D9DD-466C-92DA-F29DF755****

The ID of the request.


Sample requests

? InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "981C0D6A-D9DD-466C-92DA-F29DF755****",
	"Items": {
		"EcsSecurityGroupRelation": [
				"SecurityGroupId": "sg-bp14p9y07ns3gwq****",
				"RegionId": "cn-hangzhou",
				"NetType": "vpc"

Error codes

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