Updated on 2023-09-21 GMT+08:00

Billing Examples

WAF supports yearly/monthly (prepaid) and pay-per-use (postpaid) billing. For cloud WAF, both billing modes are supported. For dedicated WAF instances, only pay-per-use billing is supported.

Billing Scenarios

Assume that a customer purchased a professional edition cloud WAF instance at 15:50:00 on May 1, 2023, along with one domain name, QPS, and rule expansion packages. The subscription duration is one month. After one month, the customer manually renewed the subscription for another month.

In June, the customer needed to use WAF to protect a website (the service servers are deployed on Huawei Cloud), and the website can access WAF only through an IP address. As cloud WAF cannot support connections over IP addresses, the customer purchased two dedicated WAF instances at 08:00:00 on June 8, 2023 and deleted these two instances at 18:00:00 on the same day. The specifications are as follows:

  • Number of WAF instances: 2
  • WAF instance specifications: WI-100

So, how much is the fee from May to June? Let's start from scratch.

Billing Analysis

In this example, the billing consists two parts based on the billing modes.

Cloud mode: From 15:50:00 on May 1, 2023 to 23:59:59 on July 1, 2023, resources are billed on a yearly/monthly basis.

Dedicated mode: From 8:00:00 on June 8, 2023 to 18:00:00 on June 8, 2023, resources are billed on a pay-per-use basis. The billing duration is 10 hours.

Yearly/Monthly Billing for Cloud Mode

As we mentioned above, the yearly/monthly billing started at 15:50:00 on May 1, 2023 and ended at 23:59:59 on July 1, 2023, and the customer had purchased a domain expansion package, a QPS expansion package, and a rule expansion package for two months. The fees are calculated as follows:

Figure 1 Yearly/Monthly billing details

As we can see, from May to June, the fee of the cloud WAF is 3,120 + 320 + 960 + 22 = $4,422 USD.

Pay-per-Use Billing for Dedicated WAF Instances

As we mentioned earlier, the pay-per-use billing started at 08:00:00 on June 08, 2023 and ended at 18:00:00 on June 08, 2023, and the billing duration is 10 hours. The fee is calculated based on the instance specifications.

Figure 2 Pay-per-use billing for dedicated WAF instances

From May to June, the total fee for using WAF is 4,422 + 15.8 = $4,437.8 USD.