Home > Article > Operation and Maintenance > How to set the automatic renewal status of one or more prepaid instances
This article introduces how to set the automatic renewal status of one or more prepaid instances, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.
ModifyInstanceAutoRenewAttribute
Description
In order to reduce your resource expiration maintenance costs, annual and monthly ECS instances can be set to automatically For renewal, the automatic renewal and deduction date is the 9th day before the instance expires, and the deduction starts at 08:00:00 Beijing time (UTC 8).
If the automatic deduction fails on the previous day, it will continue to be executed regularly on the next day until the deduction is successful or the instance expires and is locked after 9 days. You only need to ensure that your account has sufficient balance or credit limit.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=ModifyInstanceAutoRenewAttribute &RegionId=cn-hangzhou &InstanceId=i-instance1,i-instance2 &Duration=2 &AutoRenew=True &<公共请求参数>
Return example
XML format
<ModifyInstanceAutoRenewAttributeResponse> <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId> </ModifyInstanceAutoRenewAttributeResponse>
JSON format
{ "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to set the automatic renewal status of one or more prepaid instances. For more information, please follow other related articles on the PHP Chinese website!