DescribeHostReservations - Amazon Elastic Compute Cloud


Describes reservations that are associated with Dedicated Hosts in your account.

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.


The filters.

  • instance-family - The instance family (for example, m4).

  • payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).

  • state - The state of the reservation (payment-pending | payment-failed | active | retired).

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

Type: Array of Filter objects

Required: No


The host reservation IDs.

Type: Array of strings

Required: No


The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.

Type: Integer

Required: No


The token to use to retrieve the next page of results.

Type: String

Required: No

Response Elements

The following elements are returned by the service.


Details about the reservation's configuration.

Type: Array of HostReservation objects


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

Type: String


The ID of the request.

Type: String


For information about the errors that are common to all actions, see Common client error codes.



This example describes all of the Dedicated Host reservations in your account.

Sample Request &AUTHPARAMS

Sample Response

<DescribeHostReservationsResult xmlns=""> <requestId>d4904fd9-84c3-4ea5-gtyk-a9983EXAMPLE</requestId> <hostReservationSet> <item> <upfrontPrice>0.000</upfrontPrice> <count>2</count> <start>2016-08-01T15:43:15Z</start> <instanceFamily>m4</instanceFamily> <offeringId>hro-0875903778903856fg</offeringId> <duration>31536000</duration> <paymentOption>NoUpfront</paymentOption> <end>2017-08-01T15:43:15Z</end> <hostReservationId>hr-0875903778903856fg</hostReservationId> <state>active</state> <hourlyPrice>1.990</hourlyPrice> <hostIdSet> <item>h-0897086hfkttn</item> <item>h-0891346hytrtn</item> </hostIdSet> </item> </hostReservationSet> </DescribeHostReservationsResult>

See Also

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