Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Generate bill registers and bill consolidations for a cloud provider.

Configuration

To properly use properly this tool it is necessary to fill complete the configuration file in the config directory. You will need to informsupply:

  • abiquo Abiquo database and abiquo Abiquo billing database connection.

  • abiquo api Abiquo API information.

Usage

Execute to see Run with “-h” option to display the arguments.

Code Block
languagebash
python generate_provider_bills.py -h
usage: generate_provider_bills.py [-h] -b {consolidated,current}
                                [-d BILL_DATE]
                                [-s {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28}]
                                -p PROVIDER [-l LOGDIRECTORY] [--version]

optional arguments:
-h, --help            show this help message and exit
-b {consolidated,current}
                      the bill type.
-d BILL_DATE          the bill date. Default: the date at the time of
                      executing this program
-s {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28}
                      the billing period start day. Default: 1
-p PROVIDER           cloud provider name. Example values: 'VMX_04', 'E1C'
-l LOGDIRECTORY       directory where the log file will be stored. Default:
                      current directory
--version             show program's version number and exit

...