How to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance

坏嘻嘻
Release: 2018-09-20 14:43:04
Original
2476 people have browsed it

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

How to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance

How to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance

## Return parameters

How to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance

Example

Request example

 
Action=ModifyPrepayInstanceSpec&RegionId=cn-hangzhou&InstanceId=i-xxxxx1&
InstanceType=ecs.s1.large&AutoPay=true&OperatorType=upgrade&ClientToken=xxxxxxxxxxxxxx&<公共请求参数>
返回示例
Copy after login

XML format

<ModifyInstanceConfiguration>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
    <OrderId>1011111111111111</OrderId></ModifyInstanceConfiguration>
Copy after login

JSON format

{    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",    "OrderId": 1011111111111111,
}
Copy after login

Error Code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to upgrade new instances or reduce prepaid (yearly and monthly) instance specifications to cover the entire life cycle of the instance

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template