DescribeUsageBill
Queries the billing type of a user.
Operation description
This operation is used together with the image moderation enhanced API. After you call the image moderation enhanced API operation, you can call this operation to obtain more detection information. This operation is free of charge.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:DescribeUsageBill |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
Yes |
The type. Valid values:
|
overall |
| Day |
string |
Yes |
The date in the yyyy-MM-dd format. |
2021-04-01 |
| TotalCount |
integer |
No |
The total number of records. |
10 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| CurrentPage |
integer |
No |
The current page number. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The current page number. |
1 |
| RequestId |
string |
The request ID. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of records. |
13 |
| BillList |
array<object> |
The list of user account billing information. |
|
|
object |
The list of user account billing information. |
||
| Day |
string |
The date. |
2021-04-01 |
| SubUid |
string |
The RAM user ID. |
1087252759921515 |
| Region |
string |
The region of the call. |
cn-shanghai |
| ConfirmCount |
integer |
The number of confirmed results. |
20 |
| TotalCount |
integer |
The total number of records. |
100 |
| Scene |
string |
The billing scenario. |
porn |
| BizType |
string |
The business type. |
default |
| FreeCount |
integer |
The number of free calls. |
0 |
| ReviewCount |
integer |
The number of suspected results. |
80 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n",
"PageSize": 10,
"TotalCount": 13,
"BillList": [
{
"Day": "2021-04-01",
"SubUid": "1087252759921515",
"Region": "cn-shanghai",
"ConfirmCount": 20,
"TotalCount": 100,
"Scene": "porn",
"BizType": "default",
"FreeCount": 0,
"ReviewCount": 80
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Format | Parameter format invalid. | Parameter format error |
| 400 | InvalidParameter.Value | Parameter value not supported. | The parameter value is not supported. |
| 400 | MissingParameter | Missing required parameter. | Required parameter is missing. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.