The content this article brings to you is about how to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance. It has certain reference value. Friends in need can refer to it. Hope it helps.
ModifyPrepayInstanceSpec
Upgrade or reduce the prepaid (annual and monthly) instance specifications. The new instance specifications will cover the entire life cycle of the instance.
Description
When calling this interface, you need to note:
The instance must be in the Stopped state.
When the instance is in arrears, the instance specifications cannot be modified.
Before upgrading or downgrading the instance specifications of a prepaid (yearly or monthly) instance, you can use DescribeResourcesModification to query the instance specifications that the current instance supports modification.
For more details, please refer to the Yunqi Community query for available resource practices for ECS configuration.
For downgrading the instance specification:
Each instance cannot downgrade the instance specification more than three times, that is, the price difference refund will not exceed three times.
The refund for the price difference between the instance specifications before and after the reduction will be refunded to your original payment method, and the used vouchers will not be refunded.
Every time a single instance is successfully operated, the operation cannot continue for five minutes.
Request parameters
## Return parameters
Example
Request example
Action=ModifyPrepayInstanceSpec&RegionId=cn-hangzhou&InstanceId=i-xxxxx1& InstanceType=ecs.s1.large&AutoPay=true&OperatorType=upgrade&ClientToken=xxxxxxxxxxxxxx&<公共请求参数> 返回示例
XML format
<ModifyInstanceConfiguration> <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId> <OrderId>1011111111111111</OrderId></ModifyInstanceConfiguration>
JSON format
{ "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368", "OrderId": 1011111111111111, }
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 upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance. For more information, please follow other related articles on the PHP Chinese website!