DescribePrepayBillTotal
Queries the overview of subscription 2.0 bills.
Operation description
The statistical scope covers the current Cloud Firewall instances of the user and includes all data since the purchase date.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribePrepayBillTotal |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language. Valid values:
|
zh |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The page number for paging. Default value: 1. |
1 |
| StartTime |
string |
Yes |
The start time of the query. Use a UNIX timestamp accurate to seconds. Note
Because billing data is aggregated on a daily basis, this timestamp must correspond to 00:00:00 of the day in the CST (UTC+8) time zone. If the time is not aligned with midnight, no data may be returned. |
1656750960 |
| EndTime |
string |
Yes |
The end time. Use a UNIX timestamp accurate to seconds. Note
Because billing data is aggregated on a daily basis, this timestamp must correspond to 00:00:00 of the day in the CST (UTC+8) time zone. If the time is not aligned with midnight, no data may be returned. |
1646063922 |
| BillType |
string |
Yes |
The bill type. This parameter is required. If you do not specify this parameter, an error is returned. Valid values:
Valid values:
|
sdl |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total count. |
132 |
| RequestId |
string |
The request ID. |
450D47F5-956E-543E-8502-*********** |
| BillList |
array<object> |
The bill list aggregated by day. |
|
|
object |
|||
| InternetTrafficBandwidth |
number |
The Internet traffic bandwidth. Unit: Gbit/s. |
10 |
| NatTrafficBandwidth |
number |
The NAT traffic bandwidth. Unit: Gbit/s. |
10 |
| VpcTrafficBandwidth |
number |
The VPC traffic bandwidth. Unit: Gbit/s. |
10 |
| OverflowTime |
integer |
The timestamp when the total bandwidth (Internet + VPC + NAT) reaches the maximum value on the day. |
1761588300 |
| DefaultBandwidth |
integer |
The default bandwidth of the edition. Unit: Mbit/s. |
200 |
| ExtensionBandwidth |
integer |
The extra bandwidth. Unit: Mbit/s. |
10 |
| TemporaryBandwidth |
integer |
The temporary bandwidth upgrade. Unit: Mbit/s. |
0 |
| ElasticBandwidth |
integer |
The elastic bandwidth. Unit: Mbit/s. |
200 |
| MonthlyRemainingFreeTraffic |
number |
The monthly free quota for sensitive data detection traffic. Unit: GB. |
10 |
| DailyDetectionTraffic |
number |
The sensitive data detection traffic on the day. |
8 |
| BilledDetectionTraffic |
number |
The actual billed traffic for sensitive data leak detection. |
5 |
| StartTime |
integer |
The start time of the day. The value is a UNIX timestamp accurate to seconds. |
1761580800 |
| EndTime |
integer |
The end time of the day. The value is a UNIX timestamp accurate to seconds. |
1761667200 |
| DailyOverflowTraffic |
number |
The total elastic traffic on the day. Unit: GB. |
10 |
| IsAgenticBilling |
boolean |
Specifies whether Agentic billing is used on the date to which the bill belongs. A value of true indicates that Agentic billing is used. A value of false indicates that standard billing is used. |
false |
Examples
Success response
JSON format
{
"TotalCount": 132,
"RequestId": "450D47F5-956E-543E-8502-***********",
"BillList": [
{
"InternetTrafficBandwidth": 10,
"NatTrafficBandwidth": 10,
"VpcTrafficBandwidth": 10,
"OverflowTime": 1761588300,
"DefaultBandwidth": 200,
"ExtensionBandwidth": 10,
"TemporaryBandwidth": 0,
"ElasticBandwidth": 200,
"MonthlyRemainingFreeTraffic": 10,
"DailyDetectionTraffic": 8,
"BilledDetectionTraffic": 5,
"StartTime": 1761580800,
"EndTime": 1761667200,
"DailyOverflowTraffic": 10,
"IsAgenticBilling": false
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorAliUid | The aliuid is invalid. | The aliuid is invalid. |
| 400 | ErrorNotPostpayUser | not Postpay User. | Non-pay-as-you-go Users. |
| 400 | ErrorTimeError | The time is invalid. | The time is invalid. |
| 400 | ErrorPageNo | Either page number or page size is invalid. | Either page number or page size is invalid. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorMarshalJSON | internal error. | Internal error. |
| 400 | ErrorParamsInvalid | Invalid Params | The parameter is invalid. |
| 400 | ErrorDbFailed | Query db failed. | DB access error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.