全部產品
Search
文件中心

:DescribeDBClusterServerlessConf - 查詢Serverless叢集的配置

更新時間:Dec 15, 2025

查詢serverless配置。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

polardb:DescribeDBClusterServerlessConf

get

*DBCluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#DbClusterId}

請求參數

名稱

類型

必填

描述

樣本值

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:開啟

  • false:關閉(預設)

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:標準

  • flexible:靈敏

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。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情