Modifies the configurations of a serverless cluster.
Debugging
Request parameter
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBClusterServerlessConf | The operation that you want to perform. Set the value to ModifyDBClusterServerlessConf. |
DBClusterId | String | Yes | pc-bp10gr51qasnl**** | The ID of the serverless cluster. |
ScaleMin | String | No | 1 | The minimum number of PCUs per node for scaling. Valid values: 1 PCU to 31 PCUs. |
ScaleMax | String | No | 10 | The maximum number of PCUs per node for scaling. Valid values: 1 PCU to 32 PCUs. |
ScaleRoNumMin | String | No | 1 | The minimum number of read-only nodes for scaling. Valid values: 0 to 15. |
ScaleRoNumMax | String | No | 2 | The maximum number of read-only nodes for scaling. Valid values: 0 to 15. |
AllowShutDown | String | No | true | Specifies whether to enable the no-activity suspension feature. Valid values:
|
SecondsUntilAutoPause | String | No | 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. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5E71541A-6007-4DCC-A38A-F872C31FEB45 | The request ID. |
DBClusterId | String | pc-bp10gr51qasnl**** | The ID of the serverless cluster. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=ModifyDBClusterServerlessConf
&DBClusterId=pc-bp10gr51qasnl****
&ScaleMin=1
&ScaleMax=10
&ScaleRoNumMin=1
&ScaleRoNumMax=2
&AllowShutDown=true
&SecondsUntilAutoPause=10
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBClusterServerlessConfResponse>
<RequestId>5E71541A-6007-4DCC-A38A-F872C31FEB45</RequestId>
<DBClusterId>pc-bp10gr51qasnl****</DBClusterId>
</ModifyDBClusterServerlessConfResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5E71541A-6007-4DCC-A38A-F872C31FEB45",
"DBClusterId" : "pc-bp10gr51qasnl****"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBInstanceClass.NotFound | rw class code must be equal with hot replica | The error message returned because the specification of the hot standby node is not the same as that of the primary node. |
For a list of error codes, visit the API Error Center.