StartInstances
Description
Starts an instance that uses an Amazon EBS volume as its root device.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
Note | |
---|---|
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM. Performing this operation on an instance that uses an instance store as its root device returns an error. |
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: instancesSet
instancesSet
Instances set.
Type: InstanceIdSetType
Ancestor: StartInstancesType
Children: item
item
The item element.
Type: InstanceIdType
Ancestor: instancesSet
Children: instanceId
instanceId
The instance ID.
Type: xsd:string
Default: None
Ancestor: item
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: StartInstancesResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Instances set. Type: InstanceStateChangeSetType Ancestor: Children: |
|
The item element. Type: InstanceStateChangeType Ancestor: Children: |
|
The instance ID. Type: xsd:string Ancestor: Children: None |
|
The current state of the instance. Type: InstanceStateType Ancestor: Children: |
|
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented: Type: xsd:int Valid Values: Ancestor: Children: None |
|
The current state of the instance. Type: xsd:string Valid Values: Ancestor: Children: None |
|
The previous state of the instance. Type: InstanceStateType Ancestor: Children: |
|
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented: Type: xsd:int Valid Values: Ancestor: Children: None |
|
The current state of the instance. Type: xsd:string Valid Values: Ancestor: Children: None |
Examples
Example Request
This example starts the i-10a64379 instance.
<StartInstances xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <instancesSet> <item> <instanceId>i-10a64379</instanceId> </item> </instancesSet> </StartInstances>
Example Response
<StartInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <instancesSet> <item> <instanceId>i-10a64379</instanceId> <currentState> <code>0</code> <name>pending</name> </currentState> <previousState> <code>80</code> <name>stopped</name> </previousState> </item> </instancesSet> </StartInstancesResponse>