Capabilities
✅ Cloud cost | Your OCI bill line by line, in the FOCUS format |
Prerequisites
You must be an administrator of the tenancy, able to create users, groups and policies in the root compartment. The policy must live in the root compartment, so a compartment administrator can't create it
You need access to the tenancy's home region. OCI manages users, groups and policies there, and Oracle keeps the cost reports there
If your tenancy belongs to an organization, use the parent tenancy. Oracle writes the reports for the whole organization to the parent only, and a child tenancy has none of its own
There's nothing to export. Oracle generates the cost reports for every tenancy automatically
Setup
Create a user for Viio. In the OCI Console, open Identity & Security → Domains and pick the Default domain. Under User management, create a user such as
viio-cost-reader. Viio needs only an API key, so under the user's Edit user capabilities you can turn off everything else.Create a group, such as
viio-cost-readers, in the same domain, and add the user to it.Allow the group to read the cost reports. Open Identity & Security → Policies, select the root compartment, and create a policy with these two statements, using your group's name:
define tenancy usage-report as ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
endorse group viio-cost-readers to read objects in tenancy usage-reportThe first statement names the Oracle tenancy that holds the reports. Its OCID is the same for every customer. If the group is in a domain other than Default, write it as
<domain>/<group>.Create an API key for the user. Open the user, go to API keys and click Add API key. Choose Generate API key pair, click Download private key, then click Add. Keep the downloaded
.pemfile, because OCI shows the private key only once.Note the values. After you add the key, OCI shows a configuration preview with the tenancy OCID, the user OCID and the region.
Configure the integration in Viio:
Open Viio → Integrations, choose Oracle Cloud and click Connect
Enter the four values below, then click Continue, add a name, and click Save
Tenancy OCID is the tenancy that receives the reports, for example
ocid1.tenancy.oc1..aaaa…. For an organization, use the parent tenancyRegion is the tenancy's home region, for example
us-ashburn-1User OCID is the user from step 1, for example
ocid1.user.oc1..aaaa…Private key is the whole content of the
.pemfile from step 4, from-----BEGIN PRIVATE KEY-----to-----END PRIVATE KEY-----
Before it saves, Viio checks that it can find and read a cost report. A new key or policy can take a few minutes to start working, so if Viio rejects it right after you created it, wait a few minutes and try again.
Initial sync:
Viio reads every report Oracle still keeps, which is up to a year of history
After that, Viio picks up each new report and refreshes that month's figures
Troubleshooting & FAQ
Symptom | Quick fix |
Viio says this tenancy has no FOCUS cost reports. | In an organization, only the parent tenancy receives reports, so connect the parent. A new tenancy gets its first report within about a day. |
Viio says OCI did not accept the key. | Check that the user OCID is the user you added the key to, and that you pasted the private key, not the public one. The key must be unencrypted, as OCI generates it. |
Viio says the user can't read the cost reports. | Check that the policy is in the root compartment, that it has both statements, and that the group in the |
The integration disconnected after working before. | Someone deleted the API key or the user, or removed the policy. Restore it, or create a new key and reconnect. |
Why is cost from a year ago missing? | Oracle keeps reports for one year and deletes the oldest files every day. Viio stops refreshing a month once Oracle starts deleting its files, so the month you already have stays complete. Oracle can't provide anything older. |
Today's cost looks low. | Oracle writes a new report about every six hours and can add late usage up to a day later. Viio picks it up on the next sync. |
What does Viio see in my tenancy? | Only the cost reports, through the read-only user you created. The policy grants read access to Oracle's report bucket and nothing in your own tenancy. |
Can I connect more than one tenancy? | Yes, add one integration for each parent tenancy. Don't connect a parent and its child tenancies separately: the parent's reports already include them, so Viio would count their cost twice. |
How do I disconnect Viio? | Remove the integration in Viio. Then delete the API key, the user, the group and the policy in OCI. |
Technical details
Authentication. Viio signs each request with the user's API key, as OCI's request signing specifies. It works out the key fingerprint from the private key, so you don't enter it. The private key is stored encrypted and is the only secret Viio holds for this integration. To revoke access, delete the API key or the user.
Discovery. Oracle keeps the reports in its own Object Storage namespace
bling, in a bucket named after your tenancy OCID, underFOCUS Reports/<YYYY>/<MM>/<DD>/. Oracle adds a gzip CSV file about every six hours, filed under the day the usage happened. Viio groups the files by month and reads a month again whenever its set of files changes. It skips the month a year back, because Oracle is deleting its files.Reading. Viio streams and decompresses each file, and pins each read to the file it listed. Oracle writes some columns with names from the first FOCUS preview. Viio maps
Provider,Publisher,InvoiceIssuer,Region,UsageQuantityandUsageUnitto their current FOCUS names. A blank cell arrives as no value, and Viio keeps Oracle's own columns, such asoci_CompartmentName, alongside the row.
