Queries the configuration and runtime parameters of a Tair (ApsaraDB for Redis) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeParameters |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region in which to create the instance. Call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| NodeId |
string |
No |
The node ID. Note
Use this parameter to query the configuration of a specific node in a cluster instance. |
r-bp1xxxxxxxxxxxxx-db-0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
9C1338BE-8DE8-4890-A900-E1BC06BF**** |
| Engine |
string |
The database engine. |
redis |
| EngineVersion |
string |
The engine version. |
4.0 |
| ConfigParameters |
object |
||
| Parameter |
array<object> |
A list of configuration parameters that have not yet taken effect. |
|
|
object |
A configuration parameter object. |
||
| CheckingCode |
string |
The validation rule that defines the allowed values for the parameter. |
[0|1] |
| ParameterName |
string |
The parameter name. |
script_check_enable |
| ParameterValue |
string |
The parameter value. |
1 |
| ForceRestart |
boolean |
Indicates whether a restart is required for the change to take effect. Valid values:
|
true |
| ParameterDescription |
string |
The parameter description. |
Check all keys passed in the KEYS array map to the same slot. |
| ModifiableStatus |
boolean |
Indicates whether the parameter is modifiable. Valid values:
|
true |
| RunningParameters |
object |
||
| Parameter |
array<object> |
A list of the current runtime parameters. |
|
|
object |
A runtime parameter object. |
||
| CheckingCode |
string |
The validation rule that defines the allowed values for the parameter. |
[0|1] |
| ParameterName |
string |
参数名。 |
#no_loose_disabled-commands |
| ParameterValue |
string |
参数的值。 |
keys,flushall,flushdb |
| ForceRestart |
string |
是否需要重启生效,返回值:
|
true |
| ParameterDescription |
string |
参数的描述。 |
You can disable some dangerous commands, for example \"keys,flushdb,flushall\", the commands must be in [flushall,flushdb,keys,hgetall,eval,evalsha,script]. |
| ModifiableStatus |
string |
参数是否可修改,返回值:
|
true |
Examples
Success response
JSON format
{
"RequestId": "9C1338BE-8DE8-4890-A900-E1BC06BF****",
"Engine": "redis",
"EngineVersion": "4.0",
"ConfigParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "script_check_enable",
"ParameterValue": "1",
"ForceRestart": true,
"ParameterDescription": "Check all keys passed in the KEYS array map to the same slot.",
"ModifiableStatus": true
}
]
},
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "#no_loose_disabled-commands",
"ParameterValue": "keys,flushall,flushdb",
"ForceRestart": "true",
"ParameterDescription": "You can disable some dangerous commands, for example \\\"keys,flushdb,flushall\\\", the commands must be in [flushall,flushdb,keys,hgetall,eval,evalsha,script].",
"ModifiableStatus": "true"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | |
| 404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.