Modifies auto-renewal parameters for a subscription PolarDB cluster.
Debugging
Request parameters
Parameter | Position | Type | Required | Example | Description |
---|---|---|---|---|---|
Action | Query | String | No | ModifyAutoRenewAttribute |
The operation that you want to perform. Set the value to ModifyAutoRenewAttribute. |
DBClusterIds | Query | String | Yes | pc-*************** |
The ID of the PolarDB cluster. |
RegionId | Query | String | Yes | cn-hangzhou |
The ID of the region. It must be 1 to 50 characters in length. Note You can call the DescribeRegions operation to query available regions.
|
RenewalStatus | Query | String | No | AutoRenewal |
Specifies the auto-renewal status of the cluster. Valid values:
Default value: AutoRenewal Note If this parameter is set to NotRenewal, the system does not send a reminder of expiration, but only sends a reminder three
days before the cluster expires to remind you that the cluster is not renewed.
|
Duration | Query | String | No | 1 |
Specifies the automatic renewal period.
|
PeriodUnit | Query | String | No | Month |
The unit of the renewal period. Valid values:
|
ResourceGroupId | Query | String | No | rg-************ |
The ID of the resource group. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 4CE6DF97-AEA4-484F-906F-C407EE****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=ModifyAutoRenewAttribute
&DBClusterIds=pc-***************
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<ModifyAutoRenewAttributeResponse>
<RequestId>4CE6DF97-AEA4-484F-906F-C407EE******</RequestId>
</ModifyAutoRenewAttributeResponse>
JSON
format
{
"ModifyAutoRenewAttributeResponse": {
"RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******"
}
}
Error codes
For a list of error codes, visit the API Error Center.