Queries the security groups that are included in the whitelist of an ApsaraDB for Redis instance.
Debugging
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. |
|
EcsSecurityGroupRelation | |||
NetType | String | vpc |
The network type of the security group. Valid values:
|
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. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=DescribeSecurityGroupConfiguration
? InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>
Sample success responses
XML
format
<DescribeSecurityGroupConfigurationResponse>
<RequestId>981C0D6A-D9DD-466C-92DA-F29DF755****</RequestId>
<Items>
<EcsSecurityGroupRelation>
<SecurityGroupId>sg-bp14p9y07ns3gwq****</SecurityGroupId>
<RegionId>cn-hangzhou</RegionId>
<NetType>vpc</NetType>
</EcsSecurityGroupRelation>
</Items>
</DescribeSecurityGroupConfigurationResponse>
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.