aws ec2 describe-host-reservation-offerings
Describes the Dedicated Host reservations that are available to purchase. AWS CLI reference
1 example 6 options Its page in the AWS CLI reference
Examples
To describe Dedicated Host Reservation offerings
The following describe-host-reservation-offerings example describes the Dedicated Host Reservations for the M4 instance family that are available to purchase.
aws ec2 describe-host-reservation-offerings --filter Name=instance-family,Values=m4Identify--filterThe filters.Its output, shortened
{
"OfferingSet": [
{
"HourlyPrice": "1.499",
"OfferingId": "hro-03f707bf363b6b324",
"InstanceFamily": "m4",
"PaymentOption": "NoUpfront",
"UpfrontPrice": "0.000",
"Duration": 31536000
},
{
"HourlyPrice": "1.045",
"OfferingId": "hro-0ef9181cabdef7a02",
"InstanceFamily": "m4",
"PaymentOption": "NoUpfront",
"UpfrontPrice": "0.000",
"Duration": 94608000
},
{
"HourlyPrice": "0.714",
"OfferingId": "hro-04567a15500b92a51",
"InstanceFamily": "m4",
"PaymentOption": "PartialUpfront",
"UpfrontPrice": "6254.000",
"Duration": 31536000
},
{
"HourlyPrice": "0.484",
"OfferingId": "hro-0d5d7a9d23ed7fbfe",
"InstanceFamily": "m4",
… 22 more linesFor more information, see Amazon EC2 Dedicated Host pricing and billing in the Amazon EC2 User Guide.
Options
--filterThe filters.--max-durationThis is the maximum duration of the reservation to purchase, specified in seconds.--max-resultsThe maximum number of results to return for the request in a single page.--min-durationThis is the minimum duration of the reservation you'd like to purchase, specified in seconds.--next-tokenThe token to use to retrieve the next page of results.--offering-idThe ID of the reservation offering.