RebootInstances
Description
Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
Note | |
---|---|
If a Linux/UNIX instance does not cleanly shut down within four minutes, Amazon EC2 will perform a hard reboot. |
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: instancesSet
instancesSet
Launch permission set.
Type: RebootInstancesInfoType
Ancestor: RebootInstancesType
Children: item
item
Information for an instance.
Type: RebootInstancesItemType
Ancestor: instancesSet
Children: instanceId
instanceId
One or more instance IDs.
Type: xsd:string
Default: None
Ancestor: item
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: RebootInstancesResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Returns true if successful. Otherwise, returns an error. Type: xsd:boolean Ancestor: Children: None |
Examples
Example Request
This example reboots an instance.
<RebootInstances xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <instancesSet> <item> <instanceId>i-28a64341</instanceId> </item> </instancesSet> </RebootInstances>
Example Response
<RebootInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <return>true</return> </RebootInstancesResponse>