最近更新时间:2020-11-02 15:49:25
按产品线获取账单汇总金额。
注意 只支持查询相同月份的数据
返回API概览
名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 操作接口名,系统规定参数,取值:DescribeBillSummaryByProduct |
Version | 是 | String | API版本,固定为2020-01-01 |
BillBeginMonth | 是 | String | 账单开始时间,YYYY-MM。 |
BillEndMonth | 是 | String | 账单结束时间,YYYY-MM。暂不支持跨月查询 |
名称 | 类型 | 描述 |
---|---|---|
Currency | String | 币种,取值 CNY、USD |
RealTotalCost | String | 总金额,即折后价 |
SummaryOverview | ProductSummary 数组 | 各产品线分布详情 |
RequestId | String | 当前请求的RequestId |
https://bill-union.api.ksyun.com?Action=DescribeBillSummaryByProduct&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&公共参数
<ProductTypeSummaryResponse>
<RequestId>211098e2-8a54-4932-9e5d-eb2ffb3f5956</RequestId>
<Currency>CNY</Currency>
<RealTotalCost>1111.2000</RealTotalCost>
<SummaryOverview>
<SummaryOverview>
<ProductCode>NAT_GROUP</ProductCode>
<ProductName>网络地址转换NAT</ProductName>
<RealTotalCost>30.0000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
<SummaryOverview>
<ProductCode>EBS_GROUP</ProductCode>
<ProductName>云硬盘</ProductName>
<RealTotalCost>396.0000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
<SummaryOverview>
<ProductCode>VM_GROUP</ProductCode>
<ProductName>云服务器</ProductName>
<RealTotalCost>642.0000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
<SummaryOverview>
<ProductCode>EIP_GROUP</ProductCode>
<ProductName>弹性IP</ProductName>
<RealTotalCost>43.2000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
</SummaryOverview>
</ProductTypeSummaryResponse>
{
"RequestId": "8369386d-ed45-4157-9094-975a5f65bad7",
"Currency": "CNY",
"RealTotalCost": "1111.2000",
"SummaryOverview": [
{
"ProductCode": "NAT_GROUP",
"ProductName": "网络地址转换NAT",
"RealTotalCost": "30.0000",
"BillMonth": "2020-06"
},
{
"ProductCode": "EBS_GROUP",
"ProductName": "云硬盘",
"RealTotalCost": "396.0000",
"BillMonth": "2020-06"
},
{
"ProductCode": "VM_GROUP",
"ProductName": "云服务器",
"RealTotalCost": "642.0000",
"BillMonth": "2020-06"
},
{
"ProductCode": "EIP_GROUP",
"ProductName": "弹性IP",
"RealTotalCost": "43.2000",
"BillMonth": "2020-06"
}
]
}