查看PolarDB叢集當前參數運行列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:DescribeDBClusterParameters |
get |
*dbcluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
叢集 ID。 |
pc-********** |
| DescribeType |
string |
否 |
核心參數,取值範圍如下:
|
Normal |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RunningParameters |
object |
||
| Parameter |
array<object> |
PolarDB 叢集中當前啟動並執行參數列表。 |
|
|
object |
|||
| CheckingCode |
string |
目標參數的取值範圍。 |
[utf8|latin1|gbk|utf8mb4] |
| DataType |
string |
參數實值型別。取值範圍如下:
|
INT |
| ParameterName |
string |
參數名。 |
character_set_server |
| ParameterValue |
string |
參數值。 |
utf8 |
| ForceRestart |
boolean |
是否需要重啟生效。取值範圍如下:
|
true |
| ParameterDescription |
string |
參數描述。 |
The server's default character set. |
| ParameterStatus |
string |
參數狀態。取值範圍如下:
|
Normal |
| DefaultParameterValue |
string |
參數預設值。 |
utf8 |
| IsModifiable |
boolean |
是否可修改。取值範圍如下:
|
true |
| IsNodeAvailable |
string |
是否是全域參數。取值範圍如下:
|
0 |
| ParamRelyRule |
string |
參數依賴。 |
utf8 |
| Factor |
string |
整除因子。對於整數和位元組類型的參數,參數值除了必須滿足參數的可選範圍,還須是 Factor(不等於 0)的倍數。 |
20 |
| DBVersion |
string |
資料庫引擎版本號碼。 MySQL 版本號碼取值範圍如下:
PostgreSQL 版本號碼取值範圍如下:
Oracle 版本號碼取值範圍如下:
|
5.6 |
| RequestId |
string |
請求 ID。 |
EBEAA83D-1734-42E3-85E3-E25F6E****** |
| DBType |
string |
資料庫類型,取值範圍如下:
|
MySQL |
| Engine |
string |
引擎。 |
POLARDB |
| DBClusterId |
string |
叢集 ID。 |
pc-bp1s826a1up****** |
| ParameterNumbers |
string |
參數個數。 |
1 |
| Parameters |
object |
||
| Parameters |
array<object> |
RDS 執行個體遷移 PolarDB 叢集中當前啟動並執行參數比對列表。 |
|
|
object |
|||
| rdsParameterName |
string |
源執行個體參數名稱。 |
character_set_server |
| rdsParameterValue |
string |
源執行個體參數值。 |
utf8 |
| rdsParameterOptional |
string |
源執行個體參數取值範圍。 |
- utf8 - gbk |
| distParameterName |
string |
叢集參數名稱。 |
character_set_server |
| distParameterValue |
string |
叢集參數值。 |
utf8 |
| distParameterOptional |
string |
叢集參數取值範圍。 |
- utf8 - gbk |
| IsEqual |
string |
參數取值是否相同 |
true |
| distParameterDescription |
string |
叢集參數說明。 |
The server's default character set. |
| rdsParameterDescription |
string |
源執行個體參數說明。 |
The server's default character set. |
| IsRdsKey |
string |
是否是主要的源執行個體參數。取值範圍如下:
|
1 |
| IsPolarDBKey |
string |
是否是主要的目標執行個體參數。
|
0 |
| IsInstancePolarDBKey |
string |
是否是主要的目標執行個體參數。
|
1 |
| IsInstanceRdsKey |
string |
是否是主要的源執行個體參數。
|
0 |
樣本
正常返回樣本
JSON格式
{
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[utf8|latin1|gbk|utf8mb4]",
"DataType": "INT",
"ParameterName": "character_set_server",
"ParameterValue": "utf8",
"ForceRestart": true,
"ParameterDescription": "The server's default character set.",
"ParameterStatus": "Normal",
"DefaultParameterValue": "utf8",
"IsModifiable": true,
"IsNodeAvailable": "0",
"ParamRelyRule": "utf8",
"Factor": "20"
}
]
},
"DBVersion": "5.6",
"RequestId": "EBEAA83D-1734-42E3-85E3-E25F6E******",
"DBType": "MySQL",
"Engine": "POLARDB",
"DBClusterId": "pc-bp1s826a1up******\t\n",
"ParameterNumbers": "1",
"Parameters": {
"Parameters": [
{
"rdsParameterName": "character_set_server",
"rdsParameterValue": "utf8",
"rdsParameterOptional": "- utf8\n- gbk",
"distParameterName": "character_set_server",
"distParameterValue": "utf8",
"distParameterOptional": "- utf8\n- gbk",
"IsEqual": "true",
"distParameterDescription": "The server's default character set.",
"rdsParameterDescription": "The server's default character set.",
"IsRdsKey": "1",
"IsPolarDBKey": "0",
"IsInstancePolarDBKey": "1",
"IsInstanceRdsKey": "0"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | 當前的記錄中不存在提供的DBClusterId。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。