Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

CreateSpotDatafeedSubscription

Description

Creates the datafeed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account. For more information about Spot Instances, go to Using Spot Instances in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

NameDescriptionRequired

Bucket

The Amazon S3 bucket in which to store the Spot Instance datafeed.

Type: String

Default: None

Constraints: Must be a valid bucket associated with your account.

Yes

Prefix

Prefix that is prepended to datafeed files.

Type: String

Default: None

No

Response Elements

The elements in the following table are wrapped in a CreateSpotDatafeedSubscriptionResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

spotDatafeedSubscription

Datafeed subscription.

Type: SpotDatafeedSubscriptionType

Examples

Example Request

This example creates the data feed for the account.

https://ec2.amazonaws.com/?Action=CreateSpotDatafeedSubscription
&Bucket=my-bucket
&AUTHPARAMS

Example Response

<CreateSpotDatafeedSubscriptionResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/">
    <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
    <spotDatafeedSubscription>
        <ownerId>254933287430</ownerId>
        <bucket>my-bucket</bucket>
        <prefix/>
        <state>Active</state>
    </spotDatafeedSubscription>
</CreateSpotDatafeedSubscriptionResponse>