Friday, April 29, 2022

Oracle Analytics Cloud (OAC) Snapshot RestAPI - Part 2: Create an OCI Storage Bucket

The RestAPI calls for creating an OACSnapshot requires an existing OCI Storage bucket for storing the snapshot.  The following are the steps I followed to create my storage bucket

From the Cloud Home page

  1. Click hamburger stack in upper left corner
  2. From menu select Storage
  3. Below Object Storage & Archive Storage select Buckets


  1. Change to desired Compartment
  2. Click Create Bucket


Click on bucket name


Click Copy to get OCID and paste to Notepad for later



Below Objects create a Folder in Storage Bucket

  1. Click More Actions
  2. Select Create New Folder


Provide a name for the folder and click Create at bottom of the screen


The new folder is now in the Objects

 

I now have an OCI Storage Bucket for my OAC Snapshots.


Reference Documents

Object Versioning https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Tasks/usingversioning.htm

Managing Objects https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Tasks/managingobjects.htm

Friday, April 8, 2022

Oracle Analytics Cloud (OAC) Snapshot RestAPI - Part 1: Create Confidential Application (IDCS)

Oracle will be making RestAPI available for OAC Snapshot Creation.  There is some setup that needs to be done for that all to work.  The following are the steps I followed with screen captures to get my environment setup.

When the RestAPI is publicly available I will share some of the PowerShell Scripts snippets I created from the curl commands that are included as samples.

So as the title of the post indicates you need to create a Confidential Application and collect 3 items that will be used to create a Bearer Token for secured communication via the Rest call.

Note: These steps are for clients who have not had IDCS migrated to Identity and Access Management (IAM).  I will be creating a post for creating a Confidential Application in IAM.

Also note there are 2 types of Authorization Grant Types for the Confidential Application.  Resource Owner and JWT Assertion (Federated User).  This post covers Resource Owner Grant Type.


Let's get started...

Log into Identity Cloud Service (IDCS)

Go to Applications

  1. Click + Add
  2. Click Confidential Application

Give the Application a name and click Next 


Below Authorization Select Resource Owner for Allowed Grant Types


Scroll down to Token Issuance Policy under Resources click Add Scope button


In Select Scope window
  1. Find the ANALYTICSINST_<my_OAC_instance_ID> and place check 
  2. Click Add

In the return screen copy Scope URL to a notepad for later.

 Click Next through remaining tabs.

Copy Client ID and Client Secret to notepad for later.

 

Click Activate to make the Application available.


Click OK to confirm

So you should now have following:

  • Client ID
  • Client Secret
  • Scope URL

In a future post I will cover the steps to create the Bearer Token