查詢serverless配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:DescribeDBClusterServerlessConf |
get |
*DBCluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
Serverless 叢集 ID。 |
pc-bp10gr51qasnl**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
5E71541A-6007-4DCC-A38A-F872C31FEB45 |
| ScaleMin |
string |
單節點伸縮下限。取值範圍:1 PCU~31 PCU。 |
1 |
| ScaleMax |
string |
單節點伸縮上限。取值範圍:1 PCU~32 PCU。 |
3 |
| ScaleRoNumMin |
string |
唯讀節點個數伸縮下限。取值範圍:0~15。 |
2 |
| ScaleRoNumMax |
string |
唯讀節點個數伸縮上限。取值範圍:0~15。 |
4 |
| AllowShutDown |
string |
是否開啟無活動暫停。取值:
|
true |
| SecondsUntilAutoPause |
string |
無活動暫停檢測時間長度。取值範圍:300~86,400。單位秒。檢測時間長度必須是 300 秒的倍數。 |
10 |
| DBClusterId |
string |
Serverless 叢集 ID。 |
pc-bp10gr51qasnl**** |
| ScaleApRoNumMin |
string |
唯讀列存節點個數下限。取值範圍:0~15。 |
1 |
| ScaleApRoNumMax |
string |
唯讀列存節點個數上限。取值範圍:0~15。 |
1 |
| Switchs |
string |
穩態是否開啟。取值: 1:開啟 0:關閉 |
1 |
| ServerlessRuleMode |
string |
彈性靈敏度。取值:
|
normal |
| ServerlessRuleCpuEnlargeThreshold |
string |
cpu 彈升閾值。 |
60 |
| ServerlessRuleCpuShrinkThreshold |
string |
cpu 彈降閾值。 |
30 |
| TraditionalScaleMaxThreshold |
string |
||
| AgileScaleMax |
string |
樣本
正常返回樣本
JSON格式
{
"RequestId": "5E71541A-6007-4DCC-A38A-F872C31FEB45",
"ScaleMin": "1",
"ScaleMax": "3",
"ScaleRoNumMin": "2",
"ScaleRoNumMax": "4",
"AllowShutDown": "true",
"SecondsUntilAutoPause": "10",
"DBClusterId": "pc-bp10gr51qasnl****",
"ScaleApRoNumMin": "1",
"ScaleApRoNumMax": "1",
"Switchs": "1",
"ServerlessRuleMode": "normal",
"ServerlessRuleCpuEnlargeThreshold": "60",
"ServerlessRuleCpuShrinkThreshold": "30",
"TraditionalScaleMaxThreshold": "",
"AgileScaleMax": ""
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 400 | InvalidEngine.Unsupported | The specified Engine does not support this feature. | 指定的引擎不支援此功能 |
| 403 | OperationDenied.ClusterCategory | The operation is not permitted due to cluster category. | 該叢集不支援此產品系列。 |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 當前的記錄中不存在提供的DBClusterId。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。