Queries the list of pay-as-you-go bills.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribePostpayBills |
list |
*All Resource
|
|
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 |
| 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 |
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
| Parameter | Type | Description |
| domainCount | Integer | The number of CNAME-connected domain names. |
| exclusiveIpCount | Integer | The number of exclusive IP addresses. |
| ipv6 | Integer | IPv6. |
| gslb | Integer | Intelligent load balancing. |
| nonPort | Integer | Non-standard ports. |
Feature usage - Protection-related
| Parameter | Type | Description |
| ipBlacklistRuleCount | Integer | The number of IP blacklist rules. |
| customAclBaseRuleCount | Integer | The number of custom rules - basic rules. |
| customAclAdvanceRuleCount | Integer | The number of custom rules - advanced rules. |
| antiScanRuleCount | Integer | The number of scan protection rules. |
| customResponseRuleCount | Integer | The number of custom response rules. |
| ccRuleCount | Integer | The number of HTTP flood protection rules. |
| regionBlockRuleCount | Integer | The number of geo-blocking rules. |
| tamperproofRuleCount | Integer | The number of web page anti-tampering rules. |
| dlpRuleCount | Integer | The number of information disclosure protection rules. |
| botTemplateCount | Integer | The number of legacy bot templates. |
| botWebTemplateCount | Integer | The number of new bot-web protection templates. |
| botAppTemplateCount | Integer | The number of new bot-app protection templates. |
| customAclBotRuleCount | Integer | The number of new bot advanced custom rules. |
| aiWhiteListTemplateCount | Integer | The number of intelligent whitelist templates. |
| apisecResourceCount | Integer | The number of protection objects with API security enabled. |
| assetStatus | Integer | Asset center. |
| wafBaseTemplateCount | Integer | The number of web core protection templates. |
| spikeThrottleRuleCount | Integer | The number of spike throttling templates. |
| threatIntelligenceTemplateCount | Integer | The number of threat intelligence templates. |
| aiAssetCount | Integer | The number of AI assets. |
Feature usage - Instance-related
| Parameter | Type | Description |
| instanceFee | Integer | The instance fee. |
Traffic processing usage - Instance-related
| Parameter | Type | Description |
| qps | Long | The peak QPS. |
| request | Long | The basic traffic. |
| apisecTraffic | Long | The API security traffic. |
| riskTraffic | Long | The number of risk identification requests. |
| customAclCaptcha | Long | The custom rule slider verification. |
| botTraffic | Long | The 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.