Search code examples
ibm-cloud

Export Bluemix Usage


We are using Bluemix Cloud Foundry applications and need to capture billing information for reporting purposes. Is anyone aware of how you can export the billing usage from Bluemix into a .csv or any other format?

Thanks.


Solution

  • I haven't it used that much, but you could use the bluemix / bx command with the billing option to retrieve usage and billing information per account or org. You can export it as JSON file.

    The following would retrieve the usage for the org "[email protected]" for the month of April 2017 in JSON format:

    bx billing org-usage [email protected] -d 2017-04 --json