Home > Article > Operation and Maintenance > How to check the automatic renewal status of one or more prepaid instances
The content of this article is about how to check the automatic renewal status of one or more prepaid instances. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
DescribeInstanceAutoRenewAttribute
Query the automatic renewal status of one or more prepaid instances.
Description
#In order to facilitate you to know whether your instance is in the automatic renewal state, this interface supports querying the instance renewal status.
Currently, only annual and monthly subscription instances are supported. Pay-as-you-go instances will report an error when executing this interface.
Request parameters
##Return parameters
Example
Request Example
https://ecs.aliyuncs.com/?Action=DescribeInstanceAutoRenewAttribute &RegionId=cn-hangzhou &InstanceId=i-instance1,i-instance2 &<公共请求参数>
Return example
XML format
<DescribeInstanceAutoRenewAttributeResponse> <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId> <InstanceRenewAttributes> <InstanceRenewAttribute> <Instance> <InstanceId>i-instance1</InstanceId> <Duration>0</Duration> <AutoRenewEnalbed>false</AutoRenewEnalbed> <RenewalStatus>Normal</RenewalStatus> </Instance> <Instance> <InstanceId>i-instance2</InstanceId> <Duration>1</Duration> <AutoRenewEnalbed>true</AutoRenewEnalbed> <RenewalStatus>AutoRenewal</RenewalStatus> </Instance> </InstanceRenewAttribute> </InstanceRenewAttributes> </DescribeInstanceAutoRenewAttributeResponse>
JSON format
{ "InstanceRenewAttributes": { "InstanceRenewAttribute": [ { "Duration": 0, "InstanceId": "i-instance1", "AutoRenewEnabled": false "RenewalStatus": "Normal" }, { "Duration": 1, "InstanceId": "i-instance2", "AutoRenewEnabled": true "RenewalStatus": "AutoRenewal" } ] }, "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 check the automatic renewal status of one or more prepaid instances. For more information, please follow other related articles on the PHP Chinese website!