The method of querying the automatic renewal status of one or more prepaid instances
This article mainly introduces the method of querying the automatic renewal status of one or more prepaid instances. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
DescribeInstanceAutoRenewAttribute
Query the automatic renewal status of one or more prepaid instances.
Description
To make it easier for you to know whether your instance is in an automatic renewal status, this API supports querying the renewal status of an instance.
Currently, only instances with an annual or monthly plan are supported. Instances paid by quantity will report an error when executing this API.
Request parameter
Return parameters
Example
Request example
Https://ecs.aliyuncs.com/?Action=DescribeInstanceAutoRenewAttribute&RegionId=cn-hangzhou&InstanceId=i-instance1,i-instance2&
Return the example
XML format
04F0F334-1335-436C-A1D7-6C044FE73368 i-instance1 0 false Normal i-instance2 1 true AutoRenewal
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 the error codes specific to this API. For more error codes, please visit the API error Center.
The above are all the contents of the method for querying the automatic renewal status of one or more prepaid instances. Thank you for your reading. Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!