Download Amazon Elastic Compute Cloud Developer Guide API

Transcript
Amazon Elastic Compute Cloud Developer Guide
EC2 Query API
</item>
</instancesSet>
</TerminateInstances>
Sample Response
<TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
<instancesSet>
<item>
<instanceId>i-28a64341</instanceId>
<shutdownState>
<code>32</code>
<name>shutting-down</name>
</shutdownState>
<previousState>
<code>16</code>
<name>running</name>
</previousState>
</item>
</instancesSet>
</TerminateInstancesResponse>
Related Operations
• DescribeInstances
EC2 Query API
The Amazon EC2 API consists of web service operations for every task the service can perform. This
section describes each operation in detail.
Common Query Parameters
Request Parameters
All Query operations share a set of common parameters that must be present in each call:
Parameter Name
Description
Example
Value
Action
Indicates the action to perform.
RunInstances
Version
The API version to use, as specified in the WSDL.
2007-03-0
1
AWSAccessKeyId
The Access Key ID for the request sender. This identifies
the account which will be charged for usage of the service. The account with which the Access Key ID is associated must be signed up for EC2, or requests will not be
accepted.
10QMXFEV7
1ZS32XQFT
R2
Timestamp
The date and time at which the request is signed, in the
format YYYY-MM-DDThh:mm:ssZ, as specified in the
ISO 8601 standard.
2006-07-0
7T15:04:5
6Z
API Version 2007-03-01
84