获取项目制汇总账单

最近更新时间:2020-11-02 15:48:38

获取项目制汇总(DescribeBillSummaryByProject)

1、描述

按项目制获取账单汇总金额。

注意 只支持查询相同月份的数据

返回API概览

2、请求参数

名称 必选 类型 描述
Action String 操作接口名,系统规定参数,取值:DescribeBillSummaryByProject
Version String API版本,固定为2020-01-01
BillBeginMonth String 账单开始时间,YYYY-MM。
BillEndMonth String 账单结束时间,YYYY-MM。暂不支持跨月查询

3、返回元素(调用成功)

名称 类型 描述
Currency String 币种,取值 CNY、USD
RealTotalCost String 总金额,即折后价
SummaryOverview ProjectSummary 数组 各产品线分布详情
RequestId String 当前请求的RequestId

4、示例(调用成功)

请求示例

https://bill-union.api.ksyun.com?Action=DescribeBillSummaryByProject&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&公共参数

返回示例

  • XML格式

    <ProjectSummaryResponse>
    <RequestId>0c12de73-ac6e-4c72-a60e-f66464c0ba09</RequestId>
    <Currency>CNY</Currency>
    <RealTotalCost>1111.2000</RealTotalCost>
    <SummaryOverview>
        <SummaryOverview>
            <ProjectId>0</ProjectId>
            <ProjectName>默认项目</ProjectName>
            <RealTotalCost>169.2000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
        <SummaryOverview>
            <ProjectId>100686</ProjectId>
            <ProjectName>kvmProject</ProjectName>
            <RealTotalCost>942.0000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
        <SummaryOverview>
            <ProjectId>100681</ProjectId>
            <ProjectName>DailyProject</ProjectName>
            <RealTotalCost>0.0000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
    </SummaryOverview>
    </ProjectSummaryResponse>
  • JSON格式
{
    "RequestId": "9e45be3f-0768-44d8-9174-baaf77ac3b78",
    "Currency": "CNY",
    "RealTotalCost": "1111.2000",
    "SummaryOverview": [
        {
            "ProjectId": "0",
            "ProjectName": "默认项目",
            "RealTotalCost": "169.2000",
            "BillMonth": "2020-06"
        },
        {
            "ProjectId": "100686",
            "ProjectName": "kvmProject",
            "RealTotalCost": "942.0000",
            "BillMonth": "2020-06"
        },
        {
            "ProjectId": "100681",
            "ProjectName": "DailyProject",
            "RealTotalCost": "0.0000",
            "BillMonth": "2020-06"
        }
    ]
}

金山云,开启您的云计算之旅

免费注册