Consumption Insight with the API

By | February 1, 2019

If you start using the Oracle Cloud (OCI), you want to of course have a good understanding about your spending. The Oracle Cloud provides you with some special tools to manage your consumption.

One of them being cost-tracking tags. On each object / service in the Oracle Cloud you can apply cost-tracking tags, these tags can then later be used in consumption overviews to understand what the money was spend on.
More on tags here:

In the “My Services” dashboard you can view the consumption based on the cost-tracking tags or compartments.


If you want to do some automation around the consumption, the Oracle Cloud offers an API for this. This is a different API then the OCI API and requires just an username/password instead of ssh keys.

You can find more details about the various API / Rest services here:

Martin Bridge, an Oracle employee has written a simple example in python on how these API’s can be used.

You can find Martin’s script here:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.