Call DescribeSecurityGroupConfiguration to view the security group configured in the Redis whitelist.

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

Name Type Required Example Description
Action String No DescribeSecurityGroupConfiguration

The parameter specified by the system. Value: DescribeSecurityGroupConfiguration.

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the Redis instance.

Response parameters

Name Type Example Description
Items Array

The list of security groups.

EcsSecurityGroupRelation
NetType String vpc

The network type. Valid values:

  • classic (classic network)
  • vpc (VPC network)
RegionId Boolean cn-hangzhou

The ID of the region.

SecurityGroupId String sg-bp1xxxxxxxxxxxxxx

The IDs of the security groups.

RequestId String 981C0D6A-D9DD-466C-92DA-F29DF75587CD

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/
?Action=DescribeSecurityGroupConfiguration
?InstanceId=r-bp1xxxxxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<DescribeSecurityGroupConfigurationResponse>
      <RequestId>981C0D6A-D9DD-466C-92DA-F29DF75587CD</RequestId>
      <Items>
            <EcsSecurityGroupRelation>
                  <SecurityGroupId>sg-bp1xxxxxxxxxxxxxx</SecurityGroupId>
                  <RegionId>cn-hangzhou</RegionId>
                  <NetType>vpc</NetType>
            </EcsSecurityGroupRelation>
      </Items>
</DescribeSecurityGroupConfigurationResponse>

JSON format

{
    "RequestId": "981C0D6A-D9DD-466C-92DA-F29DF75587CD",
    "Items": {
        "EcsSecurityGroupRelation": [
            {
                "SecurityGroupId": "sg-bp1xxxxxxxxxxxxxx",
                "RegionId": "cn-hangzhou",
                "NetType": "vpc"
            }
        ]
    }
}

Error codes

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