Queries the parameter list and default values of an ApsaraDB for Tair (Redis® OSS-Compatible) database instance for different architectures and major engine versions.
Operation description
After you call this operation to query the parameter list and default values, you can call the ModifyInstanceConfig operation to modify the parameters of a Redis instance based on your business requirements.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeParameterTemplates |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CharacterType |
string |
Yes |
The architecture of the instance. For more information, see Architecture overview. Valid values:
|
logic |
| Engine |
string |
Yes |
The database type. Set the value to Redis. |
Redis |
| EngineVersion |
string |
Yes |
The major engine version of the instance. Valid values: 4.0, 5.0, 6.0, and 7.0. |
5.0 |
| ResourceGroupId |
string |
No |
The resource group ID. You can invoke the ListResourceGroups operation to obtain the resource group ID. Note
You can also obtain the resource group ID in the console. Related operations, see View basic information of a resource group. |
rg-acfmyiu4ekp**** |
| InstanceId |
string |
No |
The instance ID. You can call the DescribeInstances operation to obtain the instance ID. |
r-bp1zxszhcgatnx**** |
| ParameterCategory |
string |
No |
Specifies whether to query the account parameter template. Set the value to account. |
account |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9DA28D8E-514D-4F12-ADED-70A9C818**** |
| Engine |
string |
The database type. The return value is fixed as Redis. |
redis |
| EngineVersion |
string |
The major engine version of the instance. |
5.0 |
| ParameterCount |
string |
The number of parameters. |
24 |
| Parameters |
object |
||
| TemplateRecord |
array<object> |
The list of parameter details. |
|
|
object |
|||
| CheckingCode |
string |
The valid values of the parameter. |
[yes|no] |
| ParameterName |
string |
The parameter name. For more information about metric descriptions and settings, see Metric description. |
appendonly |
| ParameterValue |
string |
The default value of the parameter. |
yes |
| ForceModify |
boolean |
Indicates whether the parameter can be modified. Valid values:
|
true |
| ForceRestart |
boolean |
Indicates whether a restart is required for the parameter modification to take effect. Valid values:
|
true |
| ParameterDescription |
string |
The description of the parameter. |
Enable AOF persistence mode |
Examples
Success response
JSON format
{
"RequestId": "9DA28D8E-514D-4F12-ADED-70A9C818****",
"Engine": "redis",
"EngineVersion": "5.0",
"ParameterCount": "24",
"Parameters": {
"TemplateRecord": [
{
"CheckingCode": "[yes|no]",
"ParameterName": "appendonly",
"ParameterValue": "yes",
"ForceModify": true,
"ForceRestart": true,
"ParameterDescription": "Enable AOF persistence mode"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | The parameter is invalid. |
| 403 | ParamNotSupportedForCurrentVersion | Parameter is not supported for current version. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.