Queries some of the default configuration parameters for a Tair (Redis-compatible) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeInstanceConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can call the DescribeInstances operation to obtain this ID. |
r-bp1zxszhcgatnx**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Config |
string |
The default configuration parameters of the instance. To view the full list of parameters, call the DescribeParameters operation. |
{\"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} |
| RequestId |
string |
The request ID. |
4E2C08F6-2D11-4ECD-9A4C-27EF2D3D**** |
| ParamReplMode |
string |
The replication mode. Valid values:
|
async |
| ParamReplTimeout |
string |
The degradation threshold for the semi-synchronous mode. This parameter is valid only in semi-synchronous mode. Unit: milliseconds. Valid values: 10 to 60000. Default value: 500. Note
If replication latency exceeds this threshold, the replication mode degrades to asynchronous mode. When the replication latency returns to normal, the mode reverts to semi-synchronous mode. |
500 |
| ParamNoLooseSentinelEnabled |
string |
Specifies whether to enable Sentinel compatibility mode. This parameter applies only to non-cluster instances. Valid values:
Note
For more information, see Sentinel compatibility mode. |
no |
| ParamSentinelCompatEnable |
string |
Specifies whether to enable Sentinel compatibility mode. This parameter applies to instances that use the cluster architecture with proxy connection mode or the read/write splitting architecture. Valid values:
Note
For more information, see Sentinel compatibility mode. |
0 |
| ParamNoLooseSentinelPasswordFreeAccess |
string |
Specifies whether to allow password-free execution of Sentinel commands when Sentinel compatibility mode is enabled. Valid values:
|
no |
| ParamNoLooseSentinelPasswordFreeCommands |
string |
Additional commands that can be run without a password. This parameter is valid only when Sentinel compatibility mode is enabled and |
**** |
Examples
Success response
JSON format
{
"Config": "{\\\"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}",
"RequestId": "4E2C08F6-2D11-4ECD-9A4C-27EF2D3D****",
"ParamReplMode": "async",
"ParamReplTimeout": "500",
"ParamNoLooseSentinelEnabled": "no",
"ParamSentinelCompatEnable": "0",
"ParamNoLooseSentinelPasswordFreeAccess": "no",
"ParamNoLooseSentinelPasswordFreeCommands": "****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.