DescribeBillSummaryByProject

Last updated:2021-07-16 15:32:00

DescribeBillSummaryByProject

You can call this operation to query the bill summary by project. Note: You can query only the bills of the same month.

Request parameters

Parameter Required Type Description
Action Yes String The operation that you want to perform. Set the value to DescribeBillSummaryByProject.
Version Yes String The version number of the API operation. Set the value to 2020-01-01.
BillBeginMonth Yes String The start month of the bill, which is in the format of YYYY-MM.
BillEndMonth Yes String The end month of the bill, which is in the format of YYYY-MM. You can query only the bills of the same month.

Response parameters

Parameter Type Description
Currency String The currency type. Valid values: CNY and USD.
RealTotalCost String The discounted amount.
SummaryOverview ProjectSummary array The bill summary by project.
RequestId String The ID of the request.

Successful call examples

Sample requests

https://bill-union.api.ksyun.com?Action=DescribeBillSummaryByProject&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&Common request parameters

Sample success responses

  • XML format
<ProjectSummaryResponse>
    <RequestId>0c12de73-ac6e-4c72-a60e-f66464c0ba09</RequestId>
    <Currency>CNY</Currency>
    <RealTotalCost>1111.2000</RealTotalCost>
    <SummaryOverview>
        <SummaryOverview>
            <ProjectId>0</ProjectId>
            <ProjectName>Default project</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 format
{
    "RequestId": "9e45be3f-0768-44d8-9174-baaf77ac3b78",
    "Currency": "CNY",
    "RealTotalCost": "1111.2000",
    "SummaryOverview": [
        {
            "ProjectId": "0",
            "ProjectName": "Default project",
            "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"
        }
    ]
}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈