DescribeDBClusterServerlessConf - 查询Serverless集群的配置

更新时间:
复制为 MD 格式

查询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

稳态(在固定规格节点上叠加了 Serverless 能力)伸缩最大值。

16

AgileScaleMax

string

敏态(Serverless 节点)伸缩最大值。

32

示例

正常返回示例

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": "16",
  "AgileScaleMax": "32"
}

错误码

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。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情