This topic describes how to view the bills of a preemptible instance.

Background information

Preemptible instances are offered at a discounted price compared to pay-as-you-go instances. You can view the bills of preemptible instances to calculate the invoice discounts and actual costs of the instances.
Note ECS automatically adds the key:acs:ecs:payType value:spot tag to all preemptible instances. You can filter ECS instances that have the key:acs:ecs:payType value:spot tag in exported bills, and calculate the invoice discounts and pretax gross amounts of the instances.

Procedure

  1. Log on to the ECS console.
  2. In the top navigation bar, choose Expenses > User Center.
  3. In the left-side navigation pane, choose Spending Summary > Spending Summary.
  4. Click the Details tab to view the bills of preemptible instances.
    • View the bills of a single preemptible instance.
      Enter the ID of a preemptible instance in the Instance ID field, and then click Search to view the bills of the preemptible instance. In the bills, you can view the usage duration, pretax gross amount, invoice discount, and payable amount of the instance. View the bills of a preemptible instance
    • View the bills of multiple preemptible instances at a time.
      1. Click the Filter icon at the top of the Product Name column and select Elastic Compute Service from the drop-down list.
      2. Click Customize Column Options in the upper-right corner of the billing details list. In the dialog box that appears, select the Instance Tag option. Then, click OK.
      3. Click Export Billing Overview (CSV). Query
      4. In the exported bill, filter preemptible instances based on the key:acs:ecs:payType value:spot tag.
        You can calculate the invoice discounts and pretax gross amounts of the preemptible instances based on your business requirements. Discount