Queries the configurations of a serverless cluster.
Debugging
Request parameter
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDBClusterServerlessConf | The operation that you want to perform. Set the value to DescribeDBClusterServerlessConf. |
DBClusterId | String | Yes | pc-bp10gr51qasnl**** | The ID of the serverless cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5E71541A-6007-4DCC-A38A-F872C31FEB45 | The request ID. |
ScaleMin | String | 1 | The minimum number of PCUs per node for scaling. Valid values: 1 PCU to 31 PCUs. |
ScaleMax | String | 3 | The maximum number of PCUs per node for scaling. Valid values: 1 PCU to 32 PCUs. |
ScaleRoNumMin | String | 2 | The minimum number of read-only nodes for scaling. Valid values: 0 to 15. |
ScaleRoNumMax | String | 4 | The maximum number of read-only nodes for scaling. Valid values: 0 to 15. |
AllowShutDown | String | true | Indicates whether No-activity Suspension is enabled. Valid values:
|
SecondsUntilAutoPause | String | 10 | The detection period for No-activity Suspension. Valid values: 300 to 86400. Unit: seconds. The detection period must be a multiple of 300 seconds. |
DBClusterId | String | pc-bp10gr51qasnl**** | The ID of the serverless cluster. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=DescribeDBClusterServerlessConf
&DBClusterId=pc-bp10gr51qasnl****
&Common request parameters
Sample success responses
XML
format
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
format
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****"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The error message returned because the specified DBClusterId is invalid. |
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified DBClusterId does not exist in the current record. |
For a list of error codes, visit the API Error Center.