Abiquo 6.0.1 introduces a new module to display private cloud billing data on the Abiquo billing dashboard.
private-billing
Generate bill registers and bill consolidations for a cloud provider.
Configuration
To use properly this tool it is necessary to fill the configuration file in the config directory. You will need to inform:
abiquo database and abiquo billing database connection.
abiquo api information.
Usage
Execute to see the arguments
Code Block | ||
---|---|---|
| ||
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 |
To generate bill consolidations for the last billing period:
Code Block | ||
---|---|---|
| ||
python generate_provider_bills.py -b consolidated -p E1C |
To generate bill registers for the current billing period:
Code Block | ||
---|---|---|
| ||
python generate_provider_bills.py -b current -p E1C |
By default a billing period lasts from the first day of the month to the last day at 23:59:59. You can change this period by modifying the BILLING_PERIOD_START_DAY.