All Products
Search
Document Center

ModifyAutoRenewAttribute

Last Updated: Aug 05, 2020

Modifies the auto-renewal attribute for an AnalyticDB for MySQL cluster billed in the subscription mode.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesModifyAutoRenewAttributeThe operation that you want to perform. Set the value to ModifyAutoRenewAttribute.

RegionIdStringYescn-hangzhouThe ID of the region where the cluster resides.
DBClusterIdStringYesam-bp1xxxxxxxx47The ID of the cluster whose auto-renewal attribute is to be modified.
RenewalStatusStringNoAutoRenewalThe renewal type of the cluster. Valid values:
  • AutoRenewal: The cluster is automatically renewed.
  • Normal: The cluster is manually renewed.
  • NotRenewal: The cluster is not renewed.
PeriodUnitStringNoMonthThe unit of the renewal period. Valid values:
  • Year
  • Month Default value: Month

DurationIntegerNo1The renewal period of the cluster.
  • When the PeriodUnit parameter is set to Month, the value range of this parameter is [1,2,3,6,12].
  • When the PeriodUnit parameter is set to Year, the value range of this parameter is [1~3].
  • Default value: 1

Response parameters

ParameterTypeExampleDescription
<Common response parameters>---

Examples

Sample requests

  1. https://adb.aliyuncs.com/?Action=ModifyAutoRenewAttribute
  2. &DBClusterId=am-xxxxxxxxxxxxxxxx
  3. &RegionId=cn-hangzhou
  4. &<Common request parameters>

Sample success responses

XML format

  1. <ModifyAutoRenewAttributeResponse>
  2. <RequestId>4CE6DF97-AEA4-484F-906F-C407EE3770EB</RequestId>
  3. </ModifyAutoRenewAttributeResponse>

JSON format

  1. {
  2. "RequestId": "4CE6DF97-AEA4-484F-906F-C407EE3770EB"
  3. }