This operation modifies the storage space for pay-as-you-go enterprise edition and standard edition clusters.
Operation description
You cannot scale down the storage space of PolarDB for PostgreSQL clusters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterStorageSpace |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************* |
| StorageSpace |
integer |
Yes |
Specifies the new storage space. Unit: GB. Note
For PolarDB for MySQL Standard Edition clusters, the storage space must be between 20 GB and 32,000 GB. |
50 |
| ClientToken |
string |
No |
A client-generated token that ensures the idempotence of the request. The token must be unique for each request, case-sensitive, and a maximum of 64 ASCII characters in length. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
| PlannedStartTime |
string |
No |
Specifies the earliest time to start the scheduled task. Specify the time in UTC in the Note
|
2021-01-14T09:00:00Z |
| PlannedEndTime |
string |
No |
Specifies the latest time to start the scheduled task. Specify the time in UTC in the Note
|
2021-01-14T09:30:00Z |
| SubCategory |
string |
No |
Specifies the subcategory of the cluster. Valid values:
|
normal_general |
| CloudProvider |
string |
No |
Specifies the cloud provider of the instance. |
ENS |
| AutoUseCoupon |
boolean |
No |
Specifies whether to automatically use a coupon. Valid values:
|
|
| PromotionCode |
string |
No |
Specifies the promotion code. If you do not specify this parameter, the system uses the default coupon. |
727xxxxxx934 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
685F028C-4FCD-407D-A559-072D63****** |
| DBClusterId |
string |
The ID of the database cluster. |
pc-************* |
| OrderId |
string |
The ID of the order. |
2035629****** |
Examples
Success response
JSON format
{
"RequestId": "685F028C-4FCD-407D-A559-072D63******",
"DBClusterId": "pc-*************",
"OrderId": "2035629******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Malformed | The Specified parameters is not valid. | The specified parameter is invalid. |
| 403 | OperationDenied.ModifyStorageSpace | This cluster edition does not support extension of storage capacity. | This cluster edition does not support extension of storage capacity. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.