You can call this operation to query parameter configurations of an ApsaraDB for MongoDB instance.
Authorization information
The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action
Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All resources
is used in the Resource type column of the operation.
- Condition keyword: refers to the condition keyword defined by the cloud product itself.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operate | access level | Resource type | conditional keyword | Association operation |
---|---|---|---|---|
dds:DescribeParameters | READ |
|
|
without |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No |
The ID of the region. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
DBInstanceId | string | Yes |
The ID of the instance.
Note
If you set this parameter to the ID of a sharded cluster instance, you must also specify the NodeId parameter.
|
dds-bpxxxxxxxx |
NodeId | string | No |
The ID of the mongos or shard in the specified sharded cluster instance.
Note
This parameter is valid only if you set the DBInstanceId parameter to the ID of a sharded cluster instance.
|
d-bpxxxxxxxx |
CharacterType | string | No |
The type of the database account. Valid values:
|
mongos |
Response parameters
Example
Normal return example
JSON
Format
{
"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"
}
]
},
"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"
}
Error codes
Http code | Error code | Error message |
---|---|---|
403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. |
404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. |
For a list of error codes, visit the API error center.