bill-union.py 817 B

12345678910111213141516171819
  1. # -*- encoding:utf-8 -*-
  2. from kscore.session import get_session
  3. if __name__ == "__main__":
  4. s = get_session()
  5. print (s)
  6. client = s.create_client("bill-union","cn-beijing-6",use_ssl=False)
  7. print (client.describe_bill_summary_by_pay_mode(BillBeginMonth="2020-06",BillEndMonth="2020-06"))
  8. print (client.describe_bill_summary_by_product(BillBeginMonth="2020-06",BillEndMonth="2020-06"))
  9. print (client.describe_bill_summary_by_project(BillBeginMonth="2020-06",BillEndMonth="2020-06"))
  10. print (client.describe_instance_summary_bills(BillMonth="2020-06",Page="1",Size="1"))
  11. print (client.describe_product_code())
  12. #print client.get_month_bill(BillStartMonth="2019-03", BillEndMonth="2019-03")
  13. #print client.get_postpay_detail_bill(BillStartMonth="2019-03", BillEndMonth="2019-03")