全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网 钉钉智能硬件

获取历史计费数据

更新时间:2017-07-20 10:01:12

描述

获取计费数据历史记录

请求参数

名称 类型 是否必须 描述
Action String 系统参数,取值:GetFeeHistory
Page int 当前页码
PageSize int 每页的记录条数

返回参数

名称 类型 描述
Pager Struct 计费方式,0表示日峰值带宽,95表示月95峰值带宽
FeeList Fee[] 返回的计费信息列表

数据类型Pager

名称 类型 描述
PageSize int 每页的记录条数
Page int 当前页码
Total int 总记录的条数

数据类型UsageData

名称 类型 描述
EndDate String 计费周期结束时间
StartDate String 计费周期开始时间
TotalBandwidth Long 总带宽
TotalTraffic Long 总流量
Date String 出账时间
FlowOut int 计费方式,0:日峰值带宽,95月95峰值带宽
TimeSpan String 计费周期
Mode String 当前计费方式描述

示例

请求示例

  1. http://pcdn.aliyuncs.com/?SignatureVersion=1.0&Action=GetFeeHistory&Format=JSON&PageSize=10&Version=2017-04-11&Page=1&<公共参数>

返回示例JSON格式:

  1. {
  2. "FeeList": {
  3. "Fee": [
  4. {
  5. "EndDate": "2017-05-05 23:59:59",
  6. "StartDate": "2017-05-05 00:00:00",
  7. "TotalBandwidth": 123456789999000,
  8. "Date": "2017-05-05",
  9. "FlowOut": 0,
  10. "BusinessType": "vod",
  11. "BillingType": 1,
  12. "TimeSpan": "2017-05-05 00:00:00 至 2017-05-05 23:59:59",
  13. "Mode": "日峰值带宽"
  14. },
  15. {
  16. "EndDate": "2017-05-04 23:59:59",
  17. "StartDate": "2017-05-04 00:00:00",
  18. "TotalBandwidth": 123456789999000,
  19. "Date": "2017-05-04",
  20. "FlowOut": 0,
  21. "BusinessType": "vod",
  22. "BillingType": 1,
  23. "TimeSpan": "2017-05-04 00:00:00 至 2017-05-04 23:59:59",
  24. "Mode": "日峰值带宽"
  25. },
  26. {
  27. "EndDate": "2017-05-02 23:59:59",
  28. "StartDate": "2017-05-02 00:00:00",
  29. "TotalBandwidth": 123456789999,
  30. "Date": "2017-05-02",
  31. "FlowOut": 0,
  32. "BusinessType": "vod",
  33. "BillingType": 1,
  34. "TimeSpan": "2017-05-02 00:00:00 至 2017-05-02 23:59:59",
  35. "Mode": "日峰值带宽"
  36. },
  37. {
  38. "EndDate": "2017-04-30 23:59:59",
  39. "StartDate": "2017-04-01 00:00:00",
  40. "TotalBandwidth": 123456789999000,
  41. "Date": "2017-04",
  42. "FlowOut": 95,
  43. "BusinessType": "live",
  44. "BillingType": 1,
  45. "TimeSpan": "2017-04-01 00:00:00 至 2017-04-30 23:59:59",
  46. "Mode": "月95峰值带宽"
  47. },
  48. {
  49. "EndDate": "2017-03-06 23:59:59",
  50. "StartDate": "2017-03-06 00:00:00",
  51. "TotalBandwidth": 123456789999000,
  52. "Date": "2017-03-06",
  53. "FlowOut": 0,
  54. "BusinessType": "vod",
  55. "BillingType": 1,
  56. "TimeSpan": "2017-03-06 00:00:00 至 2017-03-06 23:59:59",
  57. "Mode": "日峰值带宽"
  58. },
  59. {
  60. "EndDate": "2017-02-28 23:59:59",
  61. "StartDate": "2017-02-01 00:00:00",
  62. "TotalBandwidth": 123456789999000,
  63. "Date": "2017-02",
  64. "FlowOut": 95,
  65. "BusinessType": "vod",
  66. "BillingType": 1,
  67. "TimeSpan": "2017-02-01 00:00:00 至 2017-02-28 23:59:59",
  68. "Mode": "月95峰值带宽"
  69. },
  70. {
  71. "EndDate": "2017-01-31 23:59:59",
  72. "StartDate": "2017-01-01 00:00:00",
  73. "TotalBandwidth": 123456789999000,
  74. "Date": "2017-01-31",
  75. "FlowOut": 0,
  76. "BusinessType": "vod",
  77. "BillingType": 1,
  78. "TimeSpan": "2017-01-01 00:00:00 至 2017-01-31 23:59:59",
  79. "Mode": "日峰值带宽"
  80. },
  81. {
  82. "EndDate": "2016-12-31 23:59:59",
  83. "StartDate": "2016-12-01 00:00:00",
  84. "TotalBandwidth": 349539853000,
  85. "Date": "2016-12",
  86. "FlowOut": 95,
  87. "BusinessType": "vod",
  88. "BillingType": 1,
  89. "TimeSpan": "2016-12-01 00:00:00 至 2016-12-31 23:59:59",
  90. "Mode": "月95峰值带宽"
  91. }
  92. ]
  93. },
  94. "Pager": {
  95. "PageSize": 10,
  96. "Page": 1,
  97. "Total": 8
  98. },
  99. "Code": 0
  100. }

XML格式

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <GetFeeHistoryResponse>
  3. <FeeList>
  4. <Fee>
  5. <EndDate>2017-05-05 23:59:59</EndDate>
  6. <StartDate>2017-05-05 00:00:00</StartDate>
  7. <TotalBandwidth>123456789999000</TotalBandwidth>
  8. <Date>2017-05-05</Date>
  9. <FlowOut>0</FlowOut>
  10. <BusinessType>vod</BusinessType>
  11. <BillingType>1</BillingType>
  12. <TimeSpan>2017-05-05 00:00:00 至 2017-05-05 23:59:59</TimeSpan>
  13. <Mode>日峰值带宽</Mode>
  14. </Fee>
  15. <Fee>
  16. <EndDate>2017-05-04 23:59:59</EndDate>
  17. <StartDate>2017-05-04 00:00:00</StartDate>
  18. <TotalBandwidth>123456789999000</TotalBandwidth>
  19. <Date>2017-05-04</Date>
  20. <FlowOut>0</FlowOut>
  21. <BusinessType>vod</BusinessType>
  22. <BillingType>1</BillingType>
  23. <TimeSpan>2017-05-04 00:00:00 至 2017-05-04 23:59:59</TimeSpan>
  24. <Mode>日峰值带宽</Mode>
  25. </Fee>
  26. <Fee>
  27. <EndDate>2017-05-02 23:59:59</EndDate>
  28. <StartDate>2017-05-02 00:00:00</StartDate>
  29. <TotalBandwidth>123456789999</TotalBandwidth>
  30. <Date>2017-05-02</Date>
  31. <FlowOut>0</FlowOut>
  32. <BusinessType>vod</BusinessType>
  33. <BillingType>1</BillingType>
  34. <TimeSpan>2017-05-02 00:00:00 至 2017-05-02 23:59:59</TimeSpan>
  35. <Mode>日峰值带宽</Mode>
  36. </Fee>
  37. <Fee>
  38. <EndDate>2017-04-30 23:59:59</EndDate>
  39. <StartDate>2017-04-01 00:00:00</StartDate>
  40. <TotalBandwidth>123456789999000</TotalBandwidth>
  41. <Date>2017-04</Date>
  42. <FlowOut>95</FlowOut>
  43. <BusinessType>live</BusinessType>
  44. <BillingType>1</BillingType>
  45. <TimeSpan>2017-04-01 00:00:00 至 2017-04-30 23:59:59</TimeSpan>
  46. <Mode>月95峰值带宽</Mode>
  47. </Fee>
  48. <Fee>
  49. <EndDate>2017-03-06 23:59:59</EndDate>
  50. <StartDate>2017-03-06 00:00:00</StartDate>
  51. <TotalBandwidth>123456789999000</TotalBandwidth>
  52. <Date>2017-03-06</Date>
  53. <FlowOut>0</FlowOut>
  54. <BusinessType>vod</BusinessType>
  55. <BillingType>1</BillingType>
  56. <TimeSpan>2017-03-06 00:00:00 至 2017-03-06 23:59:59</TimeSpan>
  57. <Mode>日峰值带宽</Mode>
  58. </Fee>
  59. <Fee>
  60. <EndDate>2017-02-28 23:59:59</EndDate>
  61. <StartDate>2017-02-01 00:00:00</StartDate>
  62. <TotalBandwidth>123456789999000</TotalBandwidth>
  63. <Date>2017-02</Date>
  64. <FlowOut>95</FlowOut>
  65. <BusinessType>vod</BusinessType>
  66. <BillingType>1</BillingType>
  67. <TimeSpan>2017-02-01 00:00:00 至 2017-02-28 23:59:59</TimeSpan>
  68. <Mode>月95峰值带宽</Mode>
  69. </Fee>
  70. <Fee>
  71. <EndDate>2017-01-31 23:59:59</EndDate>
  72. <StartDate>2017-01-01 00:00:00</StartDate>
  73. <TotalBandwidth>123456789999000</TotalBandwidth>
  74. <Date>2017-01-31</Date>
  75. <FlowOut>0</FlowOut>
  76. <BusinessType>vod</BusinessType>
  77. <BillingType>1</BillingType>
  78. <TimeSpan>2017-01-01 00:00:00 至 2017-01-31 23:59:59</TimeSpan>
  79. <Mode>日峰值带宽</Mode>
  80. </Fee>
  81. <Fee>
  82. <EndDate>2016-12-31 23:59:59</EndDate>
  83. <StartDate>2016-12-01 00:00:00</StartDate>
  84. <TotalBandwidth>349539853000</TotalBandwidth>
  85. <Date>2016-12</Date>
  86. <FlowOut>95</FlowOut>
  87. <BusinessType>vod</BusinessType>
  88. <BillingType>1</BillingType>
  89. <TimeSpan>2016-12-01 00:00:00 至 2016-12-31 23:59:59</TimeSpan>
  90. <Mode>月95峰值带宽</Mode>
  91. </Fee>
  92. </FeeList>
  93. <Pager>
  94. <PageSize>10</PageSize>
  95. <Page>1</Page>
  96. <Total>8</Total>
  97. </Pager>
  98. <Code>0</Code>
  99. </GetFeeHistoryResponse>
本文导读目录