查詢雲資料庫 Tair(相容 Redis)執行個體的配置參數和運行參數。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
kvstore:DescribeParameters |
get |
*DBInstance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID,可調用 DescribeRegions 查詢,使用此參數指定要建立執行個體的地區。 |
cn-hangzhou |
| DBInstanceId |
string |
是 |
執行個體 ID。 |
r-bp1zxszhcgatnx**** |
| NodeId |
string |
否 |
節點 ID。 說明
傳入本參數可查詢叢集執行個體中指定節點的參數配置。 |
r-bp1xxxxxxxxxxxxx-db-0 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
對象。 |
||
| RequestId |
string |
請求 ID。 |
9C1338BE-8DE8-4890-A900-E1BC06BF**** |
| Engine |
string |
資料庫類型。 |
redis |
| EngineVersion |
string |
資料庫版本號碼。 |
4.0 |
| ConfigParameters |
object |
||
| Parameter |
array<object> |
未生效的配置參數列表。 |
|
|
object |
對象。 |
||
| CheckingCode |
string |
校正代碼,參數的可選範圍。 |
[0|1] |
| ParameterName |
string |
參數名。 |
script_check_enable |
| ParameterValue |
string |
參數的值。 |
1 |
| ForceRestart |
boolean |
是否需要重啟生效,傳回值:
|
true |
| ParameterDescription |
string |
參數的描述。 |
Check all keys passed in the KEYS array map to the same slot. |
| ModifiableStatus |
boolean |
參數是否可修改,傳回值:
|
true |
| RunningParameters |
object |
||
| Parameter |
array<object> |
運行參數列表。 |
|
|
object |
對象。 |
||
| CheckingCode |
string |
參數的可選範圍。 |
[0|1] |
| ParameterName |
string |
參數名。 |
#no_loose_disabled-commands |
| ParameterValue |
string |
參數的值。 |
keys,flushall,flushdb |
| ForceRestart |
string |
是否需要重啟生效,傳回值:
|
true |
| ParameterDescription |
string |
參數的描述。 |
You can disable some dangerous commands, for example \"keys,flushdb,flushall\", the commands must be in [flushall,flushdb,keys,hgetall,eval,evalsha,script]. |
| ModifiableStatus |
string |
參數是否可修改,傳回值:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "9C1338BE-8DE8-4890-A900-E1BC06BF****",
"Engine": "redis",
"EngineVersion": "4.0",
"ConfigParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "script_check_enable",
"ParameterValue": "1",
"ForceRestart": true,
"ParameterDescription": "Check all keys passed in the KEYS array map to the same slot.",
"ModifiableStatus": true
}
]
},
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "#no_loose_disabled-commands",
"ParameterValue": "keys,flushall,flushdb",
"ForceRestart": "true",
"ParameterDescription": "You can disable some dangerous commands, for example \\\"keys,flushdb,flushall\\\", the commands must be in [flushall,flushdb,keys,hgetall,eval,evalsha,script].",
"ModifiableStatus": "true"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | |
| 404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。