Queries the configuration parameters and running parameters of an ApsaraDB for Redis instance.
Operation description
This operation is available only for instances that use local disks.
Note
You can call the DescribeInstanceConfig operation to query the parameter settings of instances that use cloud disks.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
kvstore:DescribeParameters | get | *DBInstance acs:kvstore:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DBInstanceId | string | Yes | The ID of the instance. | r-bp1zxszhcgatnx**** |
NodeId | string | No | The ID of the node. Note
You can set this parameter to query the parameter settings of the specified node in a cluster instance.
| r-bp1xxxxxxxxxxxxx-db-0 |
Response parameters
Examples
Sample success responses
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. | The operation is not supported while the instance has the current category. Read-only instances can be cloned and backed up. |
404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. | The instance type is invalid. Check the instance type. |
For a list of error codes, visit the Service error codes.