Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.
The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it is
One or more instance IDs.
Type: array of Strings
The following elements are returned by the service.
The ID of the request.
trueif the request succeeds, and an error otherwise.
For information about the errors that are common to all actions, see Common Errors.
This example reboots two instances.
https://ec2.amazonaws.com/?Action=RebootInstances &InstanceId.1=i-1234567890abcdef0 &InstanceId.2=i-0598c7d356eba48d7 &AUTHPARAMS
<RebootInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </RebootInstancesResponse>
For more information about using this API in one of the language-specific AWS SDKs, see the following: