All Products
Search
Document Center

Web Application Firewall:DescribeElasticBills

Last Updated:Mar 25, 2026

Queries the daily bills for WAF pay-as-you-go instances for the last 7 days.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number. Pages start from page 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10.

10

InstanceId

string

Yes

The ID of the WAF instance.

Note

Call DescribeInstance to obtain the instance ID.

waf_v2_public_cn-***

RegionId

string

No

The region of the WAF instance. Valid values:

  • cn-hangzhou: the Chinese mainland.

  • ap-southeast-1: outside the Chinese mainland.

cn-hangzhou

ResourceManagerResourceGroupId

string

No

The ID of the Alibaba Cloud resource group.

rg-acfm***q

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of entries returned.

1

RequestId

string

The request ID.

6FBF08CB-8691-5B65-BBF8-***

Bills

array<object>

The bills for the pay-as-you-go WAF instance.

object

A bill for the pay-as-you-go WAF instance.

EndTime

integer

The end time of the billing period. The value is a UNIX timestamp. Unit: milliseconds.

1717084800000

StartTime

integer

The start time of the billing period. The value is a UNIX timestamp. Unit: milliseconds.

1665484616000

TrafficCu

number

The number of security capacity units (SCUs) consumed by traffic processing.

20

FunctionCu

number

The number of SCUs consumed by WAF features.

30

Cu

number

The total number of SCUs.

50

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "RequestId": "6FBF08CB-8691-5B65-BBF8-***",
  "Bills": [
    {
      "EndTime": 1717084800000,
      "StartTime": 1665484616000,
      "TrafficCu": 20,
      "FunctionCu": 30,
      "Cu": 50
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.