查詢MongoDB執行個體的參數配置資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dds:DescribeParameters |
get |
*dbinstance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBInstanceId |
string |
是 |
執行個體 ID。 說明
當本參數傳入的是分區叢集執行個體 ID 時,還需要傳入 NodeId 參數。 |
dds-bpxxxxxxxx |
| NodeId |
string |
否 |
分區叢集執行個體中的 Mongos 節點 ID 或 Shard 節點 ID。 說明
當 DBInstanceId 參數傳入的是分區叢集執行個體 ID 時,本參數才可用。 |
d-bpxxxxxxxx |
| CharacterType |
string |
否 |
執行個體的角色類型,取值說明:
|
mongos |
| ExtraParam |
string |
否 |
擴充參數。 |
terrform |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RunningParameters |
object |
||
| Parameter |
array<object> |
當前啟動並執行參數配置資訊列表。 |
|
|
object |
|||
| CheckingCode |
string |
參數取值範圍。 |
[33554432-268435456] |
| ParameterName |
string |
參數名。 |
setParameter.internalQueryExecMaxBlockingSortBytes |
| ParameterValue |
string |
參數值。 |
33554432 |
| ForceRestart |
string |
修改參數後是否需要重啟生效。
|
false |
| ParameterDescription |
string |
參數描述。 |
The maximum memory bytes that sort stage may use, default is 33554432(i.e. 32MB) |
| ModifiableStatus |
string |
參數是否處於可修改的狀態。
|
true |
| CharacterType |
string |
執行個體的角色類型,取值說明:
|
db |
| EngineVersion |
string |
資料庫版本號碼。 |
4.0 |
| RequestId |
string |
請求 ID。 |
3ADD0C7D-2D2A-4F15-88FF-E7AC9B9FDCC8 |
| ConfigParameters |
object |
||
| Parameter |
array<object> |
配置中的參數配置資訊列表。 |
|
|
object |
|||
| CheckingCode |
string |
參數取值範圍。 |
[0-65536] |
| ParameterName |
string |
參數名。 |
operationProfiling.slowOpThresholdMs |
| ParameterValue |
string |
參數值。 |
200 |
| ForceRestart |
boolean |
修改參數後是否需要重啟生效。
|
true |
| ParameterDescription |
string |
參數描述。 |
The threshold in milliseconds at which the database profiler considers a query slow, default is 100. |
| ModifiableStatus |
boolean |
參數是否處於可修改的狀態。
|
true |
| Engine |
string |
資料庫引擎,預設返回 mongodb。 |
mongodb |
樣本
正常返回樣本
JSON格式
{
"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"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | |
| 404 | InvalidDBInstanceClass.NotFound | The specified DB instance type is not found. | 所選執行個體規格不存在,請重新選擇。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。