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: