Changes the billing method of an AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:ModifyDBClusterPayType |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PayType |
string |
Yes |
The billing method of the cluster. Valid values:
|
Prepaid |
| Period |
string |
No |
The subscription period unit. Valid values:
Note
This parameter must be specified when PayType is set to Prepaid. |
Year |
| UsedTime |
string |
No |
The subscription duration of the cluster.
Note
|
1 |
| DbClusterId |
string |
Yes |
The cluster ID. |
am-bp11q28kvl688**** |
| RegionId |
string |
No |
The order ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| DBClusterId |
string |
The cluster ID. |
am-bp11q28kvl688**** |
| OrderId |
string |
The order ID. |
2023532**** |
| PayType |
string |
The billing method of the cluster. Valid values:
|
Prepaid |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"DBClusterId": "am-bp11q28kvl688****",
"OrderId": "2023532****",
"PayType": "Prepaid"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPayType.Malformed | The specified parameter "PayType" is not changed. | The payment type has not been modified. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.