Friday, September 4, 2015

Using CloudBerry for creating containers in the Oracle Storage Cloud Service

One of the pre-requisite of creating an Java Cloud Service instance or DB Cloud service instance is  container.



A container is a storage compartment that provides a way to organize the data stored in Oracle Storage Cloud Service.

Any user with the Service Administrator role can create containers. You should create
at least one container for Java Cloud Service or DB Cloud Service. . Containers are similar to a directory structure but with a key distinction: unlike directories, containers cannot be nested. By default, all containers are standard

 Note: An Oracle Storage Cloud Service account is not required if you are creating Oracle Java Cloud Service—Virtual Image instances only

There are essentially 2 ways of creating containers

1. Rest Based Web services, which is based on Open Stack Swift standard
2. Java based API.

The focus of this tutorial is using Rest Based API.

The Rest based API too can either be invoked using CURL commands or using 3rd party tools like Cloud Berry.

Note: We can use any tool that supports Open Stack Swift Standard.

What you Need?

1. Oracle Public Cloud Account
2. Cloud Berry


Steps to create container using Cloud Berry
  1. The first step is to install the cloud berry on your machine.
  2. Click File -> Open Stack


  1. From the OpenStack tab - click Add






  1. Give the below values in the form 
    a.      Display Name: Any name of your choice
    b.     UserName: Storage-identityDomain:OracleCloudUser Name. For example if your oracle cloud identity domain is USORACLE012 & UserName is Tom@or.com, the username to be used will be Storage-USORACLE01:Tom@or.com 
    c.      API Key: Oracle Cloud Username & Password
    d.     Authentication Service: This value should be of the following https://identityDomainName.storage.oraclecloud.com/auth/v1.0 For example
    https://USORACLE012.storage.oraclecloud.com/auth/v1.0

    or

     it can be of following format - https://dataCenterCode.storage.oraclecloud.com/auth/v1.0, for example, if our data center is em2, 
    https://em2.storage/oraclecloud.com/auth/v1.0

     
    e.      Make sure you uncheck “Use Key Stone Authentication”

Note: The Authentication service URL in early releases of Oracle Storage Cloud Service was this https://storage.dataCenterCode.oraclecloud.com/auth/v1.0



After giving the above values, click on Test Connection



To create new container


1.     Go to the main screen of Cloud Berry.


2.     Click on the connection you created from the source. This will make a connection to your oracle cloud storage.


3.     Click Create New Container & give the container name & hit Ok.


That's all, you can use the above container for creating your Database or Java Cloud Service account.


No comments: