Changes the instance type of an application.
Debugging
Request headers
This operation uses only common request headers and does not have operation-specific request headers. For more information, see Common request and response headers.
Request syntax
POST /pop/v1/sam/app/rescaleApplicationVertically HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 0099b7be-5f5b-4512-a7fc-56049ef1**** | The application ID. |
Cpu | String | Query | Yes | 1000 | The new CPU specification. Unit: millicore. |
Memory | String | Query | Yes | 2048 | The new memory size. Unit: MB. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | AB521DBB-FA78-42E6-803F-A862EA4F**** | The request ID. |
Message | String | success | The returned message. |
TraceId | String | 0bc3b6f315637273629117900d**** | The trace ID that is used to query the details of the request. |
Data | Object | The returned result. | |
ChangeOrderId | String | ffd8cd45-2b5f-415d-b4d0-1003e80b**** | The ID of the change order. |
ErrorCode | String | Null | The error code. Valid values:
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the instance type was changed. Valid values:
|
Examples
Sample requests
POST /pop/v1/sam/app/rescaleApplicationVertically?AppId=0099b7be-5f5b-4512-a7fc-56049ef1****&Cpu=1000&Memory=2048 HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<RescaleApplicationVerticallyResponse>
<RequestId>AB521DBB-FA78-42E6-803F-A862EA4F****</RequestId>
<Message>success</Message>
<TraceId>0bc3b6f315637273629117900d****</TraceId>
<Data>
<ChangeOrderId>ffd8cd45-2b5f-415d-b4d0-1003e80b****</ChangeOrderId>
</Data>
<Code>200</Code>
<Success>true</Success>
</RescaleApplicationVerticallyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "AB521DBB-FA78-42E6-803F-A862EA4F****",
"Message" : "success",
"TraceId" : "0bc3b6f315637273629117900d****",
"Data" : {
"ChangeOrderId" : "ffd8cd45-2b5f-415d-b4d0-1003e80b****"
},
"Code" : "200",
"Success" : true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidApplication.NotFound | The current application does not exist. | The specified application is not found. |
400 | InvalidInstanceSpecification.Unsupported | The instance specification is not supported: CPU [%s], memory [%s]. | The following instance type is not supported: CPU [%s], memory [%s]. |
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | The value of the %s parameter is invalid. This parameter cannot be left empty. |
400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | The value of the {%s} parameter is invalid. |
400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | The value %s of the {%s} parameter is invalid. |
400 | user.indebt | The user has an outstanding payment. | The current user has overdue payments. |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The system is being upgraded. Try again later. |
400 | Application.ChangerOrderRunning | An application change process is in progress. Please try again later. | An application change is in progress. Try again later. |
400 | Application.InvalidStatus | The application status is abnormal. Please try again later. | The application is in an abnormal state. Try again later. |
400 | Application.NotDeployYet | The application has not been deployed. Please deploy it and try again. | The application is not deployed. Deploy the application and try again. |
For a list of error codes, see Service error codes.