Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

DescribeSpotFleetRequestHistory

Describes the events for the specified Spot fleet request during the specified time.

Spot fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event.

Request Parameters

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.

DryRun

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 UnauthorizedOperation.

Type: Boolean

Required: No

EventType

The type of events to describe. By default, all events are described.

Type: String

Valid Values: instanceChange | fleetRequestChange | error

Required: No

MaxResults

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

Type: Integer

Required: No

NextToken

The token for the next set of results.

Type: String

Required: No

SpotFleetRequestId

The ID of the Spot fleet request.

Type: String

Required: Yes

StartTime

The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Type: Timestamp

Required: Yes

Response Elements

The following elements are returned by the service.

historyRecordSet

Information about the events in the history of the Spot fleet request.

Type: array of HistoryRecord objects

lastEvaluatedTime

The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.

If nextToken indicates that there are more results, this value is not present.

Type: Timestamp

nextToken

The token required to retrieve the next set of results. This value is null when there are no more results to return.

Type: String

requestId

The ID of the request.

Type: String

spotFleetRequestId

The ID of the Spot fleet request.

Type: String

startTime

The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors.

Example

Example

This example describes the events for Spot fleet request sfr-123f8fc2-cb31-425e-abcd-example2710 from the specified start time.

Sample Request

Copy
https://ec2.amazonaws.com/?Action=DescribeSpotFleetRequestHistory &SpotFleetRequestId=sfr-123f8fc2-cb31-425e-abcd-example2710 &StartTime=2015-07-01T12:00:00Z &AUTHPARAMS

Sample Response

Copy
<DescribeSpotFleetRequestHistoryResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>30be3aaf-afd2-408c-b62b-example</requestId> <lastEvaluatedTime>2015-07-01T13:29:40+0000</lastEvaluatedTime> <spotFleetRequestId>sfr-123f8fc2-cb31-425e-abcd-example2710</spotFleetRequestId> <startTime>2015-07-01T12:00:00Z</startTime> <historyRecordSet> <item> <eventInformation> <eventSubType>submitted</eventSubType> </eventInformation> <eventType>fleetRequestChange</eventType> <timestamp>2015-07-01T13:10:10.219Z</timestamp> </item> <item> <eventInformation> <eventSubType>active</eventSubType> </eventInformation> <eventType>fleetRequestChange</eventType> <timestamp>2015-07-01T13:10:11.624Z</timestamp> </item> <item> <eventInformation> <eventDescription>m3.medium, ami-1ecae776, Linux/UNIX (Amazon VPC); old price: 0.0153, new price: 0.0153</eventDescription> <eventSubType>price_update</eventSubType> </eventInformation> <eventType>fleetRequestChange</eventType> <timestamp>2015-07-01T13:10:13.365Z</timestamp> </item> <item> <eventInformation> <instanceId>i-1234567890abcdef0</instanceId> <eventSubType>launched</eventSubType> </eventInformation> <eventType>instanceChange</eventType> <timestamp>2015-07-01T13:19:53.795Z</timestamp> </item> <item> <eventInformation> <instanceId>i-1234567890abcdef1</instanceId> <eventSubType>launched</eventSubType> </eventInformation> <eventType>instanceChange</eventType> <timestamp>2015-07-01T13:20:39.777Z</timestamp> </item> <item> <eventInformation> <instanceId>i-1234567890abcdef2</instanceId> <eventSubType>launched</eventSubType> </eventInformation> <eventType>instanceChange</eventType> <timestamp>2015-07-01T13:20:57.773Z</timestamp> </item> <item> <eventInformation> <instanceId>i-1234567890abcdef3</instanceId> <eventSubType>launched</eventSubType> </eventInformation> <eventType>instanceChange</eventType> <timestamp>2015-07-01T13:22:05.696Z</timestamp> </item> <item> <eventInformation> <instanceId>i-1234567890abcdef4</instanceId> <eventSubType>launched</eventSubType> </eventInformation> <eventType>instanceChange</eventType> <timestamp>2015-07-01T13:23:58.927Z</timestamp> </item> </historyRecordSet> </DescribeSpotFleetRequestHistoryResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: