Consulta as configurações de parâmetros de uma instância do ApsaraDB for MongoDB.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dds:DescribeParameters |
get |
*dbinstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| DBInstanceId |
string |
Sim |
O ID da instância. Nota
Se você definir este parâmetro como o ID de uma instância de cluster fragmentado, também deverá especificar o parâmetro NodeId. |
dds-bpxxxxxxxx |
| NodeId |
string |
Não |
O ID do nó mongos ou shard na instância de cluster fragmentado especificada. Nota
Este parâmetro é válido quando o parâmetro DBInstanceId é definido como o ID de uma instância de cluster fragmentado. |
d-bpxxxxxxxx |
| CharacterType |
string |
Não |
A função da instância. Valores válidos:
|
mongos |
| ExtraParam |
string |
Não |
O parâmetro que estará disponível no futuro. |
terrform |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RunningParameters |
object |
||
| Parameter |
array<object> |
As configurações dos parâmetros que entraram em vigor. |
|
|
object |
|||
| CheckingCode |
string |
The valid values of the parameter. |
[33554432-268435456] |
| ParameterName |
string |
The name of the parameter. |
setParameter.internalQueryExecMaxBlockingSortBytes |
| ParameterValue |
string |
The value of the parameter. |
33554432 |
| ForceRestart |
string |
Indicates whether a restart is required for parameter modifications to take effect. Valid values:
|
false |
| ParameterDescription |
string |
The description of the parameter. |
The maximum memory bytes that sort stage may use, default is 33554432(i.e. 32MB) |
| ModifiableStatus |
string |
Indicates whether the parameter value can be modified. Valid values:
|
true |
| CharacterType |
string |
The role type of the instance. Valid values:
|
db |
| EngineVersion |
string |
A versão do mecanismo de banco de dados da instância. |
4.0 |
| RequestId |
string |
O ID da solicitação. |
3ADD0C7D-2D2A-4F15-88FF-E7AC9B9FDCC8 |
| ConfigParameters |
object |
||
| Parameter |
array<object> |
As configurações de parâmetros no modelo de configuração. |
|
|
object |
|||
| CheckingCode |
string |
The valid values of the parameter. |
[0-65536] |
| ParameterName |
string |
The name of the parameter. |
operationProfiling.slowOpThresholdMs |
| ParameterValue |
string |
The value of the parameter. |
200 |
| ForceRestart |
boolean |
Indicates whether a restart is required for parameter modifications to take effect. Valid values:
|
true |
| ParameterDescription |
string |
The description of the parameter. |
The threshold in milliseconds at which the database profiler considers a query slow, default is 100. |
| ModifiableStatus |
boolean |
Indicates whether the parameter value can be modified. Valid values:
|
true |
| Engine |
string |
O mecanismo de banco de dados da instância. Valor padrão: mongodb. |
mongodb |
Exemplos
Resposta de sucesso
JSON formato
{
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[33554432-268435456]",
"ParameterName": "setParameter.internalQueryExecMaxBlockingSortBytes",
"ParameterValue": "33554432",
"ForceRestart": "false",
"ParameterDescription": "The maximum memory bytes that sort stage may use, default is 33554432(i.e. 32MB)",
"ModifiableStatus": "true",
"CharacterType": "db"
}
]
},
"EngineVersion": "4.0",
"RequestId": "3ADD0C7D-2D2A-4F15-88FF-E7AC9B9FDCC8",
"ConfigParameters": {
"Parameter": [
{
"CheckingCode": "[0-65536]",
"ParameterName": "operationProfiling.slowOpThresholdMs",
"ParameterValue": "200",
"ForceRestart": true,
"ParameterDescription": "The threshold in milliseconds at which the database profiler considers a query slow, default is 100.",
"ModifiableStatus": true
}
]
},
"Engine": "mongodb"
}
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 | The specified DB instance type is not found. | Invalid instance type. Specify another instance type. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.