Queries the list of default parameter templates for ApsaraDB for MongoDB instances.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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 |
Engine | string | Yes | The database engine of the instance. Set the value to MongoDB. | mongodb |
EngineVersion | string | Yes | The database engine version of the instance. Valid values:
| 5.0 |
Role | string | No | The role of the instance. Valid values:
default: normal | normal |
Response parameters
Examples
Sample success responses
JSON
format
{
"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"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. |
400 | InvalidEngine.Malformed | Specified engine is not valid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-19 | The Error code has changed | View Change Details |
2024-01-10 | The Error code has changed. The request parameters of the API has changed | View Change Details |