All Products
Search
Document Center

PolarDB:ModifyDBClusterServerlessConf

Last Updated:Nov 07, 2023

Modifies the configurations of a serverless cluster.

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The ID of the serverless cluster.

pc-bp10gr51qasnl****
ScaleMinstringNo

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

1
ScaleMaxstringNo

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

10
ScaleRoNumMinstringNo

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

1
ScaleRoNumMaxstringNo

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

2
AllowShutDownstringNo

Specifies whether to enable No-activity Suspension. Default value: false. Valid values:

  • true
  • false
true
SecondsUntilAutoPausestringNo

The detection period for No-activity Suspension. Valid values: 5 to 1440. Unit: minutes. The detection duration must be a multiple of 5 minutes.

10

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

5E71541A-6007-4DCC-A38A-F872C31FEB45
DBClusterIdstring

The ID of the serverless cluster.

pc-bp10gr51qasnl****

Examples

Sample success responses

JSONformat

{
  "RequestId": "5E71541A-6007-4DCC-A38A-F872C31FEB45",
  "DBClusterId": "pc-bp10gr51qasnl****"
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidDBInstanceClass.NotFoundrw class code must be equal with hot replicaThe specification of the secondary node must be the same as that of the primary node.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-25The error codes of the API operation change.,The input parameters of the API operation change.see changesets
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 404
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: ScaleApRoNumMin
    Added Input Parameters: ScaleApRoNumMax
2023-09-21The error codes of the API operation change.,The input parameters of the API operation change.see changesets
Change itemChange content
Error CodesThe error codes of the API operation change.
    Error Codes 404 change
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: PlannedStartTime
    Added Input Parameters: PlannedEndTime
    Added Input Parameters: FromTimeService
2023-04-24The error codes of the API operation change.,The input parameters of the API operation change.see changesets
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 404
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: ScaleApRoNumMin
    delete Input Parameters: ScaleApRoNumMax