Queries the parameters of an ApsaraDB for Redis instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeInstanceConfig |
The operation that you want to perform. Set the value to DescribeInstanceConfig. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. You can call the DescribeInstances operation to obtain it. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. You can call the DescribeRegions operation to query IDs of available regions. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Config | String | {\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"zset-max-ziplist-entries\":128,\"list-max-ziplist-entries\":512,\"list-max-ziplist-value\":64,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64} |
The parameters of the instance. For more information, see Parameter overview and configuration guide. |
RequestId | String | 4E2C08F6-2D11-4ECD-9A4C-27EF2D3D**** |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=DescribeInstanceConfig
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>
Sample success responses
XML
format
<DescribeInstanceConfigResponse>
<RequestId>4E2C08F6-2D11-4ECD-9A4C-27EF2D3D****</RequestId>
<Config>{"#no_loose_statistics-cmds":"SET,GET","EvictionPolicy":"volatile-lru","hash-max-ziplist-entries":512,"slowlog-log-slower-than":"1000","notify-keyspace-events":"$","zset-max-ziplist-entries":128,"list-max-ziplist-entries":512,"list-max-ziplist-value":64,"zset-max-ziplist-value":64,"set-max-intset-entries":512,"hash-max-ziplist-value":64,"#no_loose_disabled-commands":"flushall"}</Config>
</DescribeInstanceConfigResponse>
JSON
format
{
"RequestId": "4E2C08F6-2D11-4ECD-9A4C-27EF2D3D****",
"Config": "{\"#no_loose_statistics-cmds\":\"SET,GET\",\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"slowlog-log-slower-than\":\"1000\",\"notify-keyspace-events\":\"$\",\"zset-max-ziplist-entries\":128,\"list-max-ziplist-entries\":512,\"list-max-ziplist-value\":64,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64,\"#no_loose_disabled-commands\":\"flushall\"}"
}
Error codes
For a list of error codes, visit the API Error Center.