Wednesday, October 24, 2018

Swift Storage Object Storage for DBCS-OCI

During provision of Database cloud service on OCI, one needs to define containers in the format for Swift API.

The sample URL format is
https://swiftobjectstorage.region.oraclecloud.com/v1/namespace/bucket

Go thru the below steps to find out Name Space & Region



1. Namespace

OCI tenant is assigned one unique and uneditable Object Storage namespace that is global (spanning all regions and compartments). 


To view your Object Storage namespace string:
Open the  User menu (User menu icon) and click Tenancy: <your_tenancy_name>. Your namespace string is listed under Object Storage Settings.


Click against your Tenancy and get the region and the name space.




Create Bucket & Users
1. Go to your OCI console and create a new bucket


2. Create a user in the OCI identity console



3. Open the user and generate a new auth token. Make a note of the auth token once you create it




4. Make sure the newly created user is part of administrator group.


5. Built the swift API URL
https://swiftobjectstorage.region.oraclecloud.com/v1/namespace/bucket 
region: us-ashburn-1 
namespace: gse00015036 
bucket: SwiftStorageBucket


https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/gse015036/SwiftStorageBucket 

6. User the user created as part of step #4 and the token as the password during creation of your pass service