Enables the Serverless feature for a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:EnableDBClusterServerless |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************** |
| ScaleMin |
string |
No |
The minimum number of PolarDB Capacity Units (PCUs) for a single node. Valid values: 0 PCU to 16 PCU. |
1 |
| ScaleMax |
string |
No |
The maximum number of PCUs for a single node. Valid values: 0 PCU to 16 PCU. |
2 |
| ScaleRoNumMin |
string |
No |
The minimum number of read-only nodes. Valid values: 0 to 15. |
1 |
| ScaleRoNumMax |
string |
No |
The maximum number of read-only nodes. Valid values: 0 to 15. |
2 |
| ScaleApRoNumMin |
string |
No |
The minimum number of steady-state AP read-only nodes. Valid values: 0 to 7. |
1 |
| ScaleApRoNumMax |
string |
No |
The maximum number of steady-state AP read-only nodes. Valid values: 0 to 7. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5E71541A-6007-4DCC-A38A-F872C31FEB45 |
| DBClusterId |
string |
The ID of the Serverless cluster. |
pc-bp10gr51qasnl**** |
Examples
Success response
JSON format
{
"RequestId": "5E71541A-6007-4DCC-A38A-F872C31FEB45",
"DBClusterId": "pc-bp10gr51qasnl****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBInstanceClass.NotFound | rw class code must be equal with hot replica | The specification of the secondary node must be the same as that of the primary node. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.