All Products
Search
Document Center

Web Application Firewall:DescribePostpayBills

Last Updated:Jul 13, 2026

Queries the list of pay-as-you-go bills.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-waf:DescribePostpayBills

list

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Instance ID of the WAF instance.

Note

You can call the DescribeInstance operation to query instance ID of the current WAF instance.

waf-cn-zz11sr5****

StartTime

integer

No

The start time. The value is a UNIX timestamp (UTC). Unit: seconds.

1779120000

EndTime

integer

No

The end time. The value is a UNIX timestamp (UTC). Unit: seconds.

1779195599

RegionId

string

No

The region where the WAF instance resides. 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

MaxResults

integer

No

The number of entries per page in a paged query.

24

NextToken

string

No

The pagination token for the next page. If a next page exists, this field has a return value.

Note

If this parameter has a return value, a next page exists. You can use the returned NextToken as a request parameter to obtain the data on the next page. Repeat this process until no value is returned, which indicates that all data has been retrieved.

caeba0bbb2be03f84eb48b699f0*****

PeriodType

string

No

The statistical period type for billing.

Valid values:

  • hour :

    Billing information is collected on an hourly basis.

hour

Response elements

Element

Type

Description

Example

object

The bill query result.

RequestId

string

The request ID.

0FBBDE11-C35F-531B-96BA-64CA****C875

BillDetail

array<object>

The list of bill details.

object

The bill details.

Cu

string

The total number of SeCUs.

51

EndTime

integer

The end time. The value is a UNIX timestamp (UTC). Unit: seconds.

1779123599

StartTime

integer

The start time. The value is a UNIX timestamp (UTC). Unit: seconds.

1779120000

FunctionCu

string

The number of feature SeCUs.

30

TrafficCu

string

The number of SeCUs generated by traffic processing.

21

ChargeData

string

The bill usage details. The value is a string converted from a JSON object constructed by a series of parameters. For more information, see Supplementary description of response parameters.

{\"aiWhiteListTemplateCount\":4,\"apisecResourceCount\":2,\"botAppTemplateCount\":1,\"botWebTemplateCount\":4,\"ccRuleCount\":1,\"customAclAdvanceRuleCount\":4,\"customResponseRuleCount\":5,\"dlpRuleCount\":1,\"gslb\":1,\"instanceFee\":1,\"ipv6\":1,\"nonPort\":1,\"qps\":0,\"regionBlockRuleCount\":1,\"threatIntelligenceTemplateCount\":1,\"wafBaseTemplateCount\":4}

MaxResults

integer

The number of entries per page in a paged query.

24

NextToken

string

The pagination token for the next page. If a next page exists, this field has a return value.

caeba0bbb2be03f84eb48b699f0*****

Bill usage detail parameter description

Feature usage - Access-related

ParameterTypeDescription
domainCountIntegerThe number of CNAME-connected domain names.
exclusiveIpCountIntegerThe number of exclusive IP addresses.
ipv6IntegerIPv6.
gslbIntegerIntelligent load balancing.
nonPortIntegerNon-standard ports.

Feature usage - Protection-related

ParameterTypeDescription
ipBlacklistRuleCountIntegerThe number of IP blacklist rules.
customAclBaseRuleCountIntegerThe number of custom rules - basic rules.
customAclAdvanceRuleCountIntegerThe number of custom rules - advanced rules.
antiScanRuleCountIntegerThe number of scan protection rules.
customResponseRuleCountIntegerThe number of custom response rules.
ccRuleCountIntegerThe number of HTTP flood protection rules.
regionBlockRuleCountIntegerThe number of geo-blocking rules.
tamperproofRuleCountIntegerThe number of web page anti-tampering rules.
dlpRuleCountIntegerThe number of information disclosure protection rules.
botTemplateCountIntegerThe number of legacy bot templates.
botWebTemplateCountIntegerThe number of new bot-web protection templates.
botAppTemplateCountIntegerThe number of new bot-app protection templates.
customAclBotRuleCountIntegerThe number of new bot advanced custom rules.
aiWhiteListTemplateCountIntegerThe number of intelligent whitelist templates.
apisecResourceCountIntegerThe number of protection objects with API security enabled.
assetStatusIntegerAsset center.
wafBaseTemplateCountIntegerThe number of web core protection templates.
spikeThrottleRuleCountIntegerThe number of spike throttling templates.
threatIntelligenceTemplateCountIntegerThe number of threat intelligence templates.
aiAssetCountIntegerThe number of AI assets.

Feature usage - Instance-related

ParameterTypeDescription
instanceFeeIntegerThe instance fee.

Traffic processing usage - Instance-related

ParameterTypeDescription
qpsLongThe peak QPS.
requestLongThe basic traffic.
apisecTrafficLongThe API security traffic.
riskTrafficLongThe number of risk identification requests.
customAclCaptchaLongThe custom rule slider verification.
botTrafficLongThe bot protection traffic.

Examples

Success response

JSON format

{
  "RequestId": "0FBBDE11-C35F-531B-96BA-64CA****C875",
  "BillDetail": [
    {
      "Cu": "51",
      "EndTime": 1779123599,
      "StartTime": 1779120000,
      "FunctionCu": "30",
      "TrafficCu": "21",
      "ChargeData": "{\\\"aiWhiteListTemplateCount\\\":4,\\\"apisecResourceCount\\\":2,\\\"botAppTemplateCount\\\":1,\\\"botWebTemplateCount\\\":4,\\\"ccRuleCount\\\":1,\\\"customAclAdvanceRuleCount\\\":4,\\\"customResponseRuleCount\\\":5,\\\"dlpRuleCount\\\":1,\\\"gslb\\\":1,\\\"instanceFee\\\":1,\\\"ipv6\\\":1,\\\"nonPort\\\":1,\\\"qps\\\":0,\\\"regionBlockRuleCount\\\":1,\\\"threatIntelligenceTemplateCount\\\":1,\\\"wafBaseTemplateCount\\\":4}"
    }
  ],
  "MaxResults": 24,
  "NextToken": "caeba0bbb2be03f84eb48b699f0*****\n"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.