Skip to content

/AWS1/CL_EC2=>DESCRIBESPOTPRICEHISTORY()

About DescribeSpotPriceHistory

Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide for Linux Instances.

When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.

Method Signature

IMPORTING

Optional arguments:

IT_FILTERS TYPE /AWS1/CL_EC2FILTER=>TT_FILTERLIST TT_FILTERLIST

The filters.

  • availability-zone - The Availability Zone for which prices should be returned.

  • instance-type - The type of instance (for example, m3.medium).

  • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

  • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

  • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

IV_AVAILABILITYZONE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Filters the results by the specified Availability Zone.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

IV_ENDTIME TYPE /AWS1/EC2DATETIME /AWS1/EC2DATETIME

The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

IT_INSTANCETYPES TYPE /AWS1/CL_EC2INSTANCETYPELIST_W=>TT_INSTANCETYPELIST TT_INSTANCETYPELIST

Filters the results by the specified instance types.

IV_MAXRESULTS TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

IV_NEXTTOKEN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

IT_PRODUCTDESCRIPTIONS TYPE /AWS1/CL_EC2PRODUCTDESCLIST_W=>TT_PRODUCTDESCRIPTIONLIST TT_PRODUCTDESCRIPTIONLIST

Filters the results by the specified basic product descriptions.

IV_STARTTIME TYPE /AWS1/EC2DATETIME /AWS1/EC2DATETIME

The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DSCSPOTPRICEHIST01 /AWS1/CL_EC2DSCSPOTPRICEHIST01