Modifies the configurations of a serverless cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameter

ParameterTypeRequiredExampleDescription
ActionStringYesModifyDBClusterServerlessConf

The operation that you want to perform. Set the value to ModifyDBClusterServerlessConf.

DBClusterIdStringYespc-bp10gr51qasnl****

The ID of the serverless cluster.

ScaleMinStringNo1

The minimum number of PCUs per node for scaling. Valid values: 1 PCU to 31 PCUs.

ScaleMaxStringNo10

The maximum number of PCUs per node for scaling. Valid values: 1 PCU to 32 PCUs.

ScaleRoNumMinStringNo1

The minimum number of read-only nodes for scaling. Valid values: 0 to 15.

ScaleRoNumMaxStringNo2

The maximum number of read-only nodes for scaling. Valid values: 0 to 15.

AllowShutDownStringNotrue

Specifies whether to enable the no-activity suspension feature. Valid values:

  • true
  • false
SecondsUntilAutoPauseStringNo10

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

ParameterTypeExampleDescription
RequestIdString5E71541A-6007-4DCC-A38A-F872C31FEB45

The request ID.

DBClusterIdStringpc-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

HttpCodeError codeError messageDescription
404InvalidDBInstanceClass.NotFoundrw class code must be equal with hot replicaThe 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.