查询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 |
稳态(在固定规格节点上叠加了 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。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。