Home  >  Article  >  Operation and Maintenance  >  Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance

Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance

坏嘻嘻
坏嘻嘻Original
2018-09-20 14:35:542180browse

The content of this article is about adjusting the instance specifications and public network bandwidth of a pay-as-you-go instance. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .

ModifyInstanceSpec

Adjust the instance specification and public network bandwidth of a pay-as-you-go instance.

Description

When calling this interface, you need to note:

The instance must be in a no-arrears state.

The public network bandwidth can be adjusted only when the instance status is Running or Stopped.

Before upgrading or downgrading the pay-as-you-go instance specifications, you can use DescribeResourcesModification to query the instance specifications that the current instance supports modification.

For more details, please refer to the Yunqi Community to query the available resource practices for ECS configuration.

The instance specification must be changed when the instance status is Stopped.

Only a single configuration can be upgraded at a time, that is, the instance specifications can only be modified at a time, or the public network bandwidth can only be adjusted.

Every time a single instance is successfully operated, the operation cannot continue within 5 minutes.

Request parametersAdjust the instance specifications and public network bandwidth of a pay-as-you-go instance

Return parameters

Full is a public return parameter. See Public Return Parameters.

Example

Request example

 
InstanceType=ecs.s1.large&InternetMaxBandwidthOut=10&InternetMaxBandwidthIn=100&
ClientToken=xxxxxxxxx&<公共请求参数>
返回示例

XML format

<ModifyInstanceSpecResponse>
   <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId></ModifyInstanceSpecResponse>

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.

Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance

Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance

Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance

The above is the detailed content of Adjust the instance specifications and public network bandwidth of a pay-as-you-go instance. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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