Mengkueri template parameter default untuk instans MongoDB.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar region terbaru. |
cn-hangzhou |
| Engine |
string |
Yes |
Mesin database. Tetapkan nilai ke mongodb. |
mongodb |
| EngineVersion |
string |
Yes |
Nomor versi database. Nilai yang valid:
|
5.0 |
| Role |
string |
No |
Peran instans. Nilai yang valid:
Nilai default-nya adalah normal. |
normal |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ParameterCount |
string |
Jumlah parameter. |
10 |
| EngineVersion |
string |
Nomor versi database. |
5.0 |
| Parameters |
object |
||
| TemplateRecord |
array<object> |
Daftar template parameter. |
|
|
object |
|||
| CheckingCode |
string |
The valid values of the parameter. |
[0-65536] |
| ParameterName |
string |
The name of the parameter. For more information, see the official MongoDB documentation. |
net.compression.compressors |
| ParameterValue |
string |
The default value of the parameter. |
100 |
| ForceModify |
boolean |
Indicates whether the parameter can be modified.
|
true |
| ForceRestart |
boolean |
Indicates whether a restart is required for the parameter modification to take effect.
|
false |
| ParameterDescription |
string |
The description of the parameter. |
The threshold in milliseconds at which the database profiler considers a query slow, default is 100. |
| RequestId |
string |
ID permintaan. |
BDA54203-9D61-54A3-A568-D281F785**** |
| Engine |
string |
Mesin database. |
mongodb |
Contoh
Respons sukses
JSONformat
{
"ParameterCount": "10",
"EngineVersion": "5.0",
"Parameters": {
"TemplateRecord": [
{
"CheckingCode": "[0-65536]",
"ParameterName": "net.compression.compressors",
"ParameterValue": "100",
"ForceModify": true,
"ForceRestart": false,
"ParameterDescription": "The threshold in milliseconds at which the database profiler considers a query slow, default is 100."
}
]
},
"RequestId": "BDA54203-9D61-54A3-A568-D281F785****",
"Engine": "mongodb"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | |
| 400 | InvalidEngine.Malformed | Specified engine is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.