HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ec2/get-host-reservation-purchase-preview.rst
**To get a purchase preview for a Dedicated Host Reservation**

This example provides a preview of the costs for a specified Dedicated Host Reservation for the specified Dedicated Host in your account.

Command::

  aws ec2 get-host-reservation-purchase-preview --offering-id hro-03f707bf363b6b324 --host-id-set h-013abcd2a00cbd123

Output::

  {
    "TotalHourlyPrice": "1.499", 
    "Purchase": [
        {
            "HourlyPrice": "1.499", 
            "InstanceFamily": "m4", 
            "PaymentOption": "NoUpfront", 
            "HostIdSet": [
                "h-013abcd2a00cbd123"
            ], 
            "UpfrontPrice": "0.000", 
            "Duration": 31536000
        }
    ], 
    "TotalUpfrontPrice": "0.000"
  }