Amazon EC2 Ec2 Spot Datafeed Subscription API

The Ec2 Spot Datafeed Subscription API from Amazon EC2 — 3 operation(s) for ec2 spot datafeed subscription.

Operations 3

POST /?Action=CreateSpotDatafeedSubscription Create Spot Datafeed Subscription #
POST /?Action=DeleteSpotDatafeedSubscription Delete Spot Datafeed Subscription #
POST /?Action=DescribeSpotDatafeedSubscription Describe Spot Datafeed Subscription #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-ec2:amazon-ec2-spot-datafeed-subscription-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-ec2-spot-datafeed-subscription-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Elastic Compute Cloud Spot Datafeed Subscription API
  version: '2016-11-15'
  description: Generated from AWS's published Smithy model for Amazon Elastic Compute Cloud. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ec2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
tags:
- name: Spot Datafeed Subscription
paths:
  /?Action=CreateSpotDatafeedSubscription:
    post:
      operationId: CreateSpotDatafeedSubscription
      summary: Create Spot Datafeed Subscription
      description: Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateSpotDatafeedSubscriptionResult'
              example:
                SpotDatafeedSubscription:
                  OwnerId: '123456789012'
                  Prefix: spotdata
                  Bucket: my-s3-bucket
                  State: Active
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: CreateSpotDatafeedSubscription
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/CreateSpotDatafeedSubscriptionRequest'
            example:
              Bucket: my-s3-bucket
              Prefix: spotdata
      tags:
      - Spot Datafeed Subscription
  /?Action=DeleteSpotDatafeedSubscription:
    post:
      operationId: DeleteSpotDatafeedSubscription
      summary: Delete Spot Datafeed Subscription
      description: Deletes the data feed for Spot Instances.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteSpotDatafeedSubscription
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/DeleteSpotDatafeedSubscriptionRequest'
      tags:
      - Spot Datafeed Subscription
  /?Action=DescribeSpotDatafeedSubscription:
    post:
      operationId: DescribeSpotDatafeedSubscription
      summary: Describe Spot Datafeed Subscription
      description: Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DescribeSpotDatafeedSubscriptionResult'
              example:
                SpotDatafeedSubscription:
                  OwnerId: '123456789012'
                  Prefix: spotdata
                  Bucket: my-s3-bucket
                  State: Active
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeSpotDatafeedSubscription
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/DescribeSpotDatafeedSubscriptionRequest'
      tags:
      - Spot Datafeed Subscription
components:
  schemas:
    CreateSpotDatafeedSubscriptionRequest:
      type: object
      properties:
        DryRun:
          type: boolean
          description: 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.
        Bucket:
          type: string
          description: The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Bucket naming rules in the Amazon S3 User Guide.
        Prefix:
          type: string
          description: The prefix for the data feed file names.
      required:
      - Bucket
    CreateSpotDatafeedSubscriptionResult:
      type: object
      properties:
        SpotDatafeedSubscription:
          $ref: '#/components/schemas/SpotDatafeedSubscription'
    DescribeSpotDatafeedSubscriptionResult:
      type: object
      properties:
        SpotDatafeedSubscription:
          $ref: '#/components/schemas/SpotDatafeedSubscription'
    DeleteSpotDatafeedSubscriptionRequest:
      type: object
      properties:
        DryRun:
          type: boolean
          description: 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.
    SpotDatafeedSubscription:
      type: object
      properties:
        Bucket:
          type: string
          description: The name of the Amazon S3 bucket where the Spot Instance data feed is located.
        Fault:
          $ref: '#/components/schemas/SpotInstanceStateFault'
        OwnerId:
          type: string
          description: The Amazon Web Services account ID of the account.
        Prefix:
          type: string
          description: The prefix for the data feed files.
        State:
          type: string
          enum:
          - Active
          - Inactive
          description: The state of the Spot Instance data feed subscription.
    DescribeSpotDatafeedSubscriptionRequest:
      type: object
      properties:
        DryRun:
          type: boolean
          description: 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.
    SpotInstanceStateFault:
      type: object
      properties:
        Code:
          type: string
          description: The reason code for the Spot Instance state change.
        Message:
          type: string
          description: The message for the Spot Instance state change.
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: ec2
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/ec2/service/2016-11-15/ec2-2016-11-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)