调用DescribeDBClusterServerlessConf查询Serverless集群的配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDBClusterServerlessConf |
系统规定参数。取值:DescribeDBClusterServerlessConf。 |
DBClusterId | String | 是 | pc-bp10gr51qasnl**** |
Serverless集群ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 5E71541A-6007-4DCC-A38A-F872C31FEB45 |
请求ID。 |
ScaleMin | String | 1 |
单节点伸缩下限。取值范围:1 PCU~31 PCU。 |
ScaleMax | String | 3 |
单节点伸缩上限。取值范围:1 PCU~32 PCU。 |
ScaleRoNumMin | String | 2 |
只读节点个数伸缩下限。取值范围:0~15。 |
ScaleRoNumMax | String | 4 |
只读节点个数伸缩上限。取值范围:0~15。 |
AllowShutDown | String | true |
是否开启无活动暂停。取值:
|
SecondsUntilAutoPause | String | 10 |
无活动暂停的检测时长。取值范围:5~1440。单位分钟。检测时长必须是5分钟的倍数。 |
DBClusterId | String | pc-bp10gr51qasnl**** |
Serverless集群ID。 |
示例
请求示例
http(s)://polardb.aliyuncs.com/?Action=DescribeDBClusterServerlessConf
&DBClusterId=pc-bp10gr51qasnl****
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDBClusterServerlessConfResponse>
<RequestId>5E71541A-6007-4DCC-A38A-F872C31FEB45</RequestId>
<ScaleMin>1</ScaleMin>
<ScaleMax>3</ScaleMax>
<ScaleRoNumMin>2</ScaleRoNumMin>
<ScaleRoNumMax>4</ScaleRoNumMax>
<AllowShutDown>true</AllowShutDown>
<SecondsUntilAutoPause>10</SecondsUntilAutoPause>
<DBClusterId>pc-bp10gr51qasnl****</DBClusterId>
</DescribeDBClusterServerlessConfResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5E71541A-6007-4DCC-A38A-F872C31FEB45",
"ScaleMin" : "1",
"ScaleMax" : "3",
"ScaleRoNumMin" : "2",
"ScaleRoNumMax" : "4",
"AllowShutDown" : "true",
"SecondsUntilAutoPause" : "10",
"DBClusterId" : "pc-bp10gr51qasnl****"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | 指定的参数DBClusterId无效 |
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 当前的记录中不存在提供的DBClusterId。 |
访问错误中心查看更多错误码。