Restarts a simple application server.

Description

  • You can restart simple application server instances that are only in the Running (Running) state.
  • After you restart a simple application server, it enters the Starting (Starting) state.

QPS limits

The queries per second (QPS) limit for a single user for the API operation is 10 calls per minute. If the number of calls to the API operation per minute exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limit.

Request parameters

Parameter Type Required Example Description
InstanceId String Yes ace0706b2ac4454d984295a94213****

The ID of the simple application server.

RegionId String Yes cn-hangzhou

The region ID of the simple application server.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.

Action String Yes RebootInstance

The operation that you want to perform. Set the value to RebootInstance.

Response parameters

Parameter Type Example Description
RequestId String 20758A-585D-4A41-A9B2-28DA8F4F****

The ID of the request.

Examples

Sample requests

https://swas.cn-hangzhou.aliyuncs.com/?InstanceId=ace0706b2ac4454d984295a94213****
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&Action=RebootInstance
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RebootInstanceResponse>
    <RequestId>20758A-585D-4A41-A9B2-28DA8F4F****</RequestId>
</RebootInstanceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "20758A-585D-4A41-A9B2-28DA8F4F****"
}

Error codes

HTTP status code Error code Error message Description
403 IncorrectInstanceStatus The state of the current instance does not support this operation. The error message returned because the operation is not supported while the simple application server is in the current state.
404 InvalidInstanceId.NotFound The specified InstanceId does not exist. The error message returned because the specified InstanceId parameter is invalid.
500 InternalError An error occurred while processing your request. The error message returned because an internal error has occurred. Try again later. If the problem persists, submit a ticket.

For a list of error codes, visit the API Error Center.