DescribePostpayBill
Queries pay-as-you-go 2.0 bills.
Operation description
For pay-as-you-go users, the billing details are accurate to the specific resource instance level. For subscription users, only overall queries are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribePostpayBill |
get |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language. Default value: zh. Valid values: en. |
zh |
| PageSize |
integer |
No |
The maximum number of entries to return on each page in a paged query. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The Settings for the current page number in a paged query. |
1 |
| StartTime |
string |
Yes |
The start time of the bill query. The time is a UNIX timestamp in seconds. |
1656664560 |
| EndTime |
string |
Yes |
The end time of the bill query. The time is a UNIX timestamp in seconds and must be later than the start time. |
1646063922 |
| Interval |
integer |
Yes |
The aggregation interval of the bill data. Unit: seconds. This parameter is required. If this parameter is not specified, ERR_PARAMS_INVALID is returned. Valid values:
Valid values:
|
3600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| TotalCount |
integer |
The total number of entries. |
132 |
| RequestId |
string |
The ID of the request. |
133173B9-8010-5DF5-8B93-******** |
| AggregateInternetTraffic |
number |
The aggregated Internet traffic. Unit: GB. |
10 |
| AggregateNatTraffic |
number |
The aggregated NAT traffic. Unit: GB. |
10 |
| AggregateVpcTraffic |
number |
The aggregated VPC traffic. Unit: GB. |
10 |
| AggregateSdlTraffic |
number |
The aggregated sensitive data leak detection traffic. Unit: GB. |
10 |
| AggregateTotalTraffic |
number |
The aggregated total traffic. Unit: GB. |
40 |
| BillList |
array<object> |
The bill list. |
|
|
object |
|||
| InternetTraffic |
number |
The Internet traffic. Unit: GB. |
10 |
| NatInstanceCnt |
integer |
The number of NAT instances. |
2 |
| EndTime |
integer |
The end time. The time is a UNIX timestamp in seconds and represents an exact hour or day. |
1733710015 |
| SdlTraffic |
number |
The sensitive data leak detection traffic. Unit: GB. |
1 |
| InternetInstanceCnt |
integer |
The number of Internet instances. |
3 |
| StartTime |
integer |
The start time. The time is a UNIX timestamp in seconds and represents an exact hour or day. |
1710206070000 |
| LogStorage |
integer |
The usage duration of Simple Log Service. Unit: TB × hours. |
24 |
| NatTraffic |
number |
The NAT traffic. Unit: GB. |
2 |
| VpcInstanceCnt |
integer |
The number of VPC instances. |
2 |
| ThreatIntelligence |
integer |
The usage duration of threat intelligence. Unit: hours. |
1 |
| IsDerated |
integer |
Specifies whether the fee is reduced or waived. A value of 0 indicates that the fee is not reduced or waived. A value greater than 0 indicates that the fee is reduced or waived, and no bill is generated. Note
This parameter is valid only when you query hourly data. |
0 |
| IsAgenticBilling |
boolean |
Specifies whether the bill for the specified date is calculated based on the Agentic billing method. A value of true indicates the Agentic billing method. A value of false indicates the standard billing method. |
false |
| Sdl |
integer |
The usage duration of sensitive data leak detection. Unit: hours. |
0 |
| VpcTraffic |
number |
The VPC traffic. Unit: GB. |
4 |
Examples
Success response
JSON format
{
"TotalCount": 132,
"RequestId": "133173B9-8010-5DF5-8B93-********",
"AggregateInternetTraffic": 10,
"AggregateNatTraffic": 10,
"AggregateVpcTraffic": 10,
"AggregateSdlTraffic": 10,
"AggregateTotalTraffic": 40,
"BillList": [
{
"InternetTraffic": 10,
"NatInstanceCnt": 2,
"EndTime": 1733710015,
"SdlTraffic": 1,
"InternetInstanceCnt": 3,
"StartTime": 1710206070000,
"LogStorage": 24,
"NatTraffic": 2,
"VpcInstanceCnt": 2,
"ThreatIntelligence": 1,
"IsDerated": 0,
"IsAgenticBilling": false,
"Sdl": 0,
"VpcTraffic": 4
}
]
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.