Sets the auto-renewal status for a subscription PolarDB cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyAutoRenewAttribute |
update |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterIds |
string |
Yes |
The ID of the database cluster. |
pc-*************** |
| RegionId |
string |
Yes |
The region ID. The ID cannot be more than 50 characters long. Note
Call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| RenewalStatus |
string |
No |
The auto-renewal status. Valid values:
Default value: AutoRenewal. Note
If you set this parameter to NotRenewal, the system stops sending expiration notifications. The system sends only a non-renewal notification three days before the expiration date. |
AutoRenewal |
| Duration |
string |
No |
The auto-renewal period. Valid values:
Default value: 1. |
1 |
| PeriodUnit |
string |
No |
The unit of the renewal period. Valid values:
Default value: Month. |
Month |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-************ |
| CloudProvider |
string |
No |
ENS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4CE6DF97-AEA4-484F-906F-C407EE****** |
Examples
Success response
JSON format
{
"RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRenewalStatus.Malformed | The specified parameter RenewalStatus is not valid. | The specified RenewalStatus parameter is invalid. |
| 400 | InvalidPeriodUnit.Malformed | The specified parameter PeriodUnit is not valid. | The specified PeriodUnit parameter is invalid. |
| 400 | InvalidDuration.Malformed | The specified parameter Duration is not valid. | The specified Duration parameter is invalid. |
| 403 | OperationDenied.DBClusterPayType | The operation is not permitted due to the pay type of cluster. | This operation is not supported by the billing method of the cluster. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.