Cloud Services

Cost & Asset Management

Oracle Cloud Cost Extraction
Published On Oct 22, 2024 - 11:35 AM

Oracle Cloud Cost Extraction

Learn the steps to complete to be able to set up Oracle Cloud Integration (OCI).
The Oracle Cloud Integration (OCI) offers to analyze data by extracting cost, asset, and insights recommendation for OCI.
Oracle Cloud Integration is now available only for Cost & Asset Management analysis where users can view Oracle data based on their costs and assets.  To use this feature and start extracting data, Oracle Cloud Integration (OCI) should be onboarded by using specific credentials.
OCI also provides billing details and billing data into certain buckets. In OCI these buckets are set by default.
To onboard OCI, you must have the necessary credentials and perform the following menu selections:
  1. On your tenant, click the
    Main Menu
    then click
    Admin
    and select
    IAM
    .
  2. Once in
    the Identify and Access Management (IAM)
    page, click
    Add New
      and then select
    Add Connection.
To add a connection, you must fill the following information:
  • Connection Name:
    Enter the connection name you want to give.
  • Select Tags (Optional):
    Select key:value format, or you may
    Create new tags
    .
  • Description (Optional):
    This would answer
    What is the purpose of this connection?
  • Select Technology Category:
    Select either Cloud Provider or Content Provider.
  • Select Connection Type:
    Select
    one of the supported connection types for the category selected. In this case you select OCI. After selecting OCI, the connection configuration details need to be filled.

Connection Configuration Details

You must provide all the necessary information to enable the selected Connection Type.
To configure the connection, enter the following information:
  • Toggle switch:
    Turn it on or off depending on whether the connection is used for billing data.
  • Tenancy OCID:
    Input Tenancy OCI. The OCID of the parent tenant or tenant associated with the primary funded subscription.
  • Region (Optional):
    Input Region. Enter ID of the region where the tenant is.
  • User for which API key is generated:
    Input User for which API key is generated.
The next stage is the one where you must enter the credential details.

Credential Details

You must enter the required credentials for the IAM to access the selected Connection Type.
The following details are required to be filled:
  • Fingerprint of generated key:
    Input fingerprint of generated key.
  • Base64 encoded key content:
    Input Base64 encoded key content. PEM file content encoded to base64; this file will be generated when generated credentials for a user.
When you have entered all the required information, click
Add
, or to cancel your changes and start over, click
Cancel
You must have certain permission to be able to manage OCI accounts. These are explained as follows.

Permissions required on OCI account

To add permissions to OCI account, you must perform the following steps with admin login:
  1. Create a new group and assign this group to a specific user, you can create a new user for this purpose or use an existing one. Set the group name as
    COST_GROUP
    .
  2. Create the following policy and use the group created above:define tenancy usage-report as ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq endorse group COST_GROUP to read objects in tenancy usage-report
  • Give group COST_GROUP permission to access usage-reports in tenancy.
  • Give group COST_GROUP permission to access organizations-family in tenancy.
The credential config file of user in step 1 is used as credentials when onboarding OCI account in CAM.
To get to configuration file:
  1. On your Oracle Cloud go
    Domains,
    click
    Default Domai
    click
    Users
    select
    specific
    user
    .
  2. Go to API keys on the main menu. If API keys are not available, create one and click the ellipsis where you can see
    view configuration file
    . The details showing on this section are the details required for CAM on-boarding page. The key file needs to be base64 encoded.
For asset and metrics extration
For the same user and group created in costs, give permission by using the following policy: Allow group COST_GROUP to read all-resources in tenancy.

Start extracting asset, cost, tag, and recommendation data

Once all the set up has been completed, you can start working on your Cost & Asset application and extract specific information. To learn more, go to: Oracle Cloud Integration in CAM
Do you have two minutes for a quick survey?
Take Survey