Sets the auto renewal attribute of an instance.
Fee deduction for auto renewal starts at 08:00:00 (UTC +08:00) on the ninth day before the expiry date.
If fee deduction fails, it attempts to charge the fees at 08:00:00 (UTC +08:00) every day before the expiry date. If the payment attempts keep failing until the expiry date, the instance is released and gets out-of-service. You must make sure that you have not set any credit limit on your credit card.
Action String Yes The name of this interface. Value: ModifyInstanceAutoRenewAttribute.
RegionId String Yes. Region ID of an instance. You can call DescribeRegions to obtain the latest region list.
InstanceId String Yes. Instance ID. A maximum of 100 instances billed by subscription can be set in batches. Multiple instance IDs are separated with commas (,).
Duration Integer No Auto renewal duration of an instance, in the unit of month. Optional values: 1 | 12.
NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry. In this case, if you want to renew your instance, you can change the renewal status of your instance before a manual renewal or set it to auto renewal mode.
The response parameters are all common response parameters. For more information, see Common parameters.
IncorrectInstanceStatus The current status of the resource does not support this operation. 403 This operation is not supported because the instance is expired.
InvalidParameter.Duration The auto renewal duration should be one of the following values: 1|2|3|6|12. 403 The specified auto renewal duration must be 1 month or 12 months.
MissingParameter.InstanceId InstanceId should not be null. 403 InstanceId is required.