All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

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"
        }
    ]
}
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback