Consulta os parâmetros de configuração e os parâmetros de execução de uma instância Tair (compatível com Redis® OSS).
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
kvstore:DescribeParameters |
get |
*DBInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Não |
O ID da região. Você pode chamar DescribeRegions para consultar as regiões disponíveis. Use este parâmetro para especificar a região da instância. |
cn-hangzhou |
| DBInstanceId |
string |
Sim |
O ID da instância. |
r-bp1zxszhcgatnx**** |
| NodeId |
string |
Não |
O ID do nó. Nota
Especifique este parâmetro para consultar as configurações de parâmetros de um nó específico em uma instância de cluster. |
r-bp1xxxxxxxxxxxxx-db-0 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
9C1338BE-8DE8-4890-A900-E1BC06BF**** |
| Engine |
string |
O tipo de banco de dados. |
redis |
| EngineVersion |
string |
A versão do mecanismo de banco de dados. |
4.0 |
| ConfigParameters |
object |
||
| Parameter |
array<object> |
A lista de parâmetros de configuração que ainda não entraram em vigor. |
|
|
object |
O objeto. |
||
| CheckingCode |
string |
The check code that indicates the valid values of 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 parameter to take effect. Valid values:
|
true |
| ParameterDescription |
string |
The description of the parameter. |
Check all keys passed in the KEYS array map to the same slot. |
| ModifiableStatus |
boolean |
Indicates whether the parameter can be modified. Valid values:
|
true |
| RunningParameters |
object |
||
| Parameter |
array<object> |
A lista de parâmetros de execução. |
|
|
object |
O objeto. |
||
| CheckingCode |
string |
The valid values of the parameter. |
[0|1] |
| ParameterName |
string |
The parameter name. |
#no_loose_disabled-commands |
| ParameterValue |
string |
The parameter value. |
keys,flushall,flushdb |
| ForceRestart |
string |
Indicates whether a restart is required for the parameter to take effect. Valid values:
|
true |
| ParameterDescription |
string |
The description of the parameter. |
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 |
Indicates whether the parameter can be modified. Valid values:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | |
| 404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.