Friday, January 10, 2020

How to Get the usage report in Oracle Cloud OCI

Usage reports are CSV files generated daily that show usage data for each resource in your tenancy. The CSV files are stored in an object storage bucket that is accessible using a cross-tenancy policy. 

The reports are stored in the Oracle owned object storage bucket. The reports are retained for one year, however it can be modified later on.

Normally, we cannot view the usage report directly. Our account should have the proper IAM policies attached to it.

The two policies are :-


define tenancy usage-report as ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq

endorse group "group name"to read objects in tenancy usage-report

I have created the usagepolicy as show below:-




                      There are two policy statements included.

Once the policy is created, we will be able to view the usage report which will be available under Account Management>>Usage report section




Download the reports in your PC and have a look into it. It contains one row per each Oracle Cloud Infrastructure resource (such as instance, Object Storage bucket, VNIC) per hour along with consumption information, metadata, and tags. Usage reports generally contain 24 hours of usage data, although occasionally a usage report may contain late-arriving data that is older than 24 hours.

Hope this helps someone. Happy learning Cloud......................................







No comments:

Post a Comment