You can call this operation to modify the auto-renewal status for an AnalyticDB for MySQL cluster billed on a subscription basis.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyAutoRenewAttribute

The operation that you want to perform. Set the value to ModifyAutoRenewAttribute.

DBClusterId String Yes am-bp1xxxxxxxx47

The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region.

RenewalStatus String No AutoRenewal

The renewal status of the cluster. Valid values:

  • AutoRenewal: automatically renews the cluster.
  • Normal: manually renews the cluster.
  • NotRenewal: The cluster is not renewed
Duration String No 1

The renewal duration.

  • Valid values when Month is set to 1, 2, 3, 6, and 12
  • Valid values when Year is set to 1, 2, and 3

Default value: 1.

PeriodUnit String No Month

The unit of the renewal duration.

  • Year
  • Month

Default value: Month

Response parameters

Parameter Type Example Description
RequestId String 4CE6DF97-AEA4-484F-906F-C407EE3770EB

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyAutoRenewAttribute
&DBClusterId=am-bp1xxxxxxxx47
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<RequestId>4CE6DF97-AEA4-484F-906F-C407EE3770EB</RequestId>

JSON format

{
    "RequestId": "4CE6DF97-AEA4-484F-906F-C407EE3770EB"
}

Error codes

For a list of error codes, visit the API Error Center.