描述
获取用户已出账单的消费周期、消费时间、计量峰值数值、业务类型等信息。
当用户有多于1个业务类型(live/vod/download)时,不同业务单独输出消费时间和计量数据。
请求参数
返回参数
数据类型Label
数据类型UsageData
特定错误码
示例
请求示例
http://pcdn.aliyuncs.com/?Action=GetBalanceBandwidthData&EndDate=2017-05-10&Timestamp=2017-05-31T10%3A37%3A48Z&StartDate=2017-05-01&SignatureVersion=1.0&TotalBandwidth=0&Format=JSON&LevelThreeBandwidth=0&FlowOut=0&SignatureNonce=5df2de33-2d2e-4032-97d6-220e4a2df3e7&Version=2017-04-11&LevelTwoBandwidth=0&AccessKeyId=LTAIHB6hAhgmlYBP&Signature=%2BKDF7%2Fp2h7H%2F7mnsn7ErrgMse4k%3D&SignatureMethod=HMAC-SHA1&RegionId=cn-hangzhou&BillingType=1&<公共参数>
返回示例JSON格式:
{
"Labels": {
"Label": [
"带宽",
"带宽峰值",
"日峰值带宽"
]
},
"RequestId": "20963AEE-E3A5-461F-8809-C494558373AB",
"DataList": {
"UsageData": [
{
"Values": {
"Values": [
185187502281,
347993190084,
0
]
},
"Date": "2017-05-01 00:00:00"
},
{
"Values": {
"Values": [
177339955340,
347993190084,
0
]
},
"Date": "2017-05-01 00:05:00"
}
]
},
"Code": 0
}
XML格式
<?xml version="1.0" encoding="utf-8"?>
<GetBalanceBandwidthDataResponse>
<Labels>
<Label>带宽</Label>
<Label>带宽峰值</Label>
<Label>日峰值带宽</Label>
</Labels>
<RequestId>5923BFA8-ACC2-4949-A0AB-46B66FF45BDD</RequestId>
<DataList>
<UsageData>
<Values>
<Values>185187502281</Values>
<Values>347993190084</Values>
<Values>0</Values>
</Values>
<Date>2017-05-01 00:00:00</Date>
</UsageData>
<UsageData>
<Values>
<Values>177339955340</Values>
<Values>347993190084</Values>
<Values>0</Values>
</Values>
<Date>2017-05-01 00:05:00</Date>
</UsageData>
</DataList>
<Code>0</Code>
</GetBalanceBandwidthDataResponse>