All Products
Search
Document Center

Elastic Compute Service:View billing details

Last Updated:Nov 15, 2023

You can view the bills and consumption details of your Elastic Compute Service (ECS) instances in the Billing Management console.

View bills in the Billing Management console

  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 Bills > Bill Details.

  4. Click a tab to view billing information.

    The following table describes the tabs.

    Tab

    Description

    Consumption by Bill

    You can view each order and the bill for each billing cycle.

    If you want to query ECS bills, click the Filter icon at the top of the Product Name column and select Elastic Compute Service from the drop-down list.

    Billing Details

    You can filter billing details by statistical item and statistical period. The billing details include the product details, subscription types, prices, and deducted fees of services.

    If you want to query ECS bills, click the Filter icon at the top of the Product Name column and select Elastic Compute Service from the drop-down list, or specify an instance for exact search. You can click the Filter icon at the top of the Subscription Type column and select one of the following values from the drop-down list:

    • Subscription: applies to subscription instances.

    • Pay-As-You-Go: applies to pay-as-you-go or preemptible instances.

    Usage Records

    You must export usage records as a CSV file to your computer so that you can view the records. Set Product to Elastic Compute Service (ECS) and configure Billable Item, Time Period, and Time Unit based on your business requirements. After you enter the verification code and click Export CSV, the Export Record page appears. When the status of the file changes from Generating to Exported, click Download in the Actions column to export the file to your computer.

    For more information about bills, see Billing Management.

    For example, if you want to view the billing details of subscription ECS instances that were created in August 2022, you can specify conditions to filter ECS bills, as shown in the following figure.

    image.png
    Note
    • You can click Customize Column Options in the upper-right corner of the billing details list and select the columns that you want to view.

    • You can click Export Billing Overview (CSV) in the upper-right corner of the billing details list to export the billing details to your computer. This way, you can view and analyze the billing details on premises.

Example: View the bills of preemptible instances

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

The key:acs:ecs:payType value:spot tag is automatically added 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.

  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 Bills > Bill Details.

  4. Click the Billing Details tab to view the bills of preemptible instances.

    • View the bills of a single preemptible instance.

      In the second field to the right of Resource Group, select Instance ID from the drop-down list and enter the ID of a preemptible instance. Then, click Search. In the search results, you can find the bills of the preemptible instance that include the usage durations, pretax gross amounts, invoice discounts, and payable amounts of the instance.

    • View the bills of multiple preemptible instances at a time.

      1. Select Elastic Compute Service from the Product 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 Instance Tag and click OK.

      3. Click Export Billing Overview (CSV).

      4. In the Export Billing Overview (CSV) dialog box, configure Exported Content and Verification Code and click OK.

      5. In the exported bills, 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.