Queries the bill of an Anti-DDoS Origin (Pay-as-you-go) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-antiddosbag:DescribeDdosOriginInstanceBill | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Type | string | No | The bill type. Valid values:
| function |
StartTime | long | No | The beginning of the time range to query. The value is a timestamp. Unit: milliseconds. | 1711209600410 |
EndTime | long | No | The end of the time range to query. The value is a timestamp. Unit: milliseconds. The time span between StartTime and EndTime cannot exceed 30 days. | 1711382399410 |
IsShowList | boolean | No | Specifies whether to display the bill details. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "72155560-F343-55C8-82FE-ED4D7E4AA97E",
"Status": 1,
"DebtStatus": 0,
"InstanceId": "ddosorigin_cn-u7c3lcr9r02",
"IpCount": 15,
"IpInfo": "{\\\"eipCnIpCount\\\":6,\\\"eipOvIpCount\\\":17,\\\"standardAssetsCnIpCount\\\":2,\\\"standardAssetsOvIpCount\\\":0}",
"TotalFlowCn": 6302081067,
"TotalFlowOv": 6204918019,
"StandardAssetsTotalFlowCn": 0,
"StandardAssetsTotalFlowOv": 0,
"IpCountOrFunctionList": [
{
"Coverage": "global",
"IpCntCn": 5,
"IpCntOv": 5,
"Time": 1680278400000,
"MemberIpCnt": "[{\\\"eipCnIpCount\\\":3,\\\"eipOvIpCount\\\":18,\\\"memberUid\\\":\\\"\\\",\\\"standardAssetsCnIpCount\\\":2,\\\"standardAssetsOvIpCount\\\":0},{\\\"eipCnIpCount\\\":3,\\\"eipOvIpCount\\\":0,\\\"memberUid\\\":\\\"1776997906319249\\\",\\\"standardAssetsCnIpCount\\\":0,\\\"standardAssetsOvIpCount\\\":0}]"
}
],
"FlowList": [
{
"TotalFlow": 6302081067,
"TotalBillFlow": 6302081067,
"RegionFlow": "{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":0,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.124\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}",
"Time": 1620951900,
"MemberFlow": "[{\\\"bytes\\\":79282719,\\\"memberUid\\\":\\\"\\\",\\\"regionFlows\\\":{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":79282719,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.57\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}}]"
}
],
"StandardAssetsFlowList": [
{
"TotalFlow": 6302081067,
"RegionFlow": "{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":0,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.124\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}",
"Time": 1679846400000,
"MemberFlow": "[{\\\"bytes\\\":79282719,\\\"memberUid\\\":\\\"\\\",\\\"regionFlows\\\":{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":79282719,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.57\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}}]"
}
],
"FlowRegion": {
"test": "test",
"test2": 1
},
"StandardAssetsFlowRegion": {
"test": "test",
"test2": 1
},
"AssetStatus": 0,
"MonthlySummaryList": [
{
"Uid": "102518028277****",
"MemberUid": "112873971277****",
"EnableDays": 30,
"StandardAssetsFlowCn": 123456,
"StandardAssetsFlowIntl": 123456,
"FlowCn": 123456,
"FlowIntl": 123456,
"IpCountCn": 28,
"IpCountIntl": 30
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-01-15 | The response structure of the API has changed | View Change Details |
2024-11-13 | The response structure of the API has changed | View Change Details |
2024-08-21 | The response structure of the API has changed | View Change Details |