Showing posts with label REST. Show all posts
Showing posts with label REST. Show all posts

Wednesday, December 30, 2015

Oracle API Catalog Cloud Service

Oracle API Catalog Cloud Service is a collection of machine-readable (Swagger 2.0) API descriptions exposed by Oracle’s most popular SaaS and PaaS applications.

You can use these descriptions to generate code stubs, this facilitating integration between your applications and others in the Oracle Public Cloud.

Thursday, October 8, 2015

How to restore a file from an Archive Container ?

To download an archived object, the object must first be restored.
The following example shows how to restore a file :


curl -v -s https://storage.us2.oraclecloud.com/v0/Storage-IdentityDomaine/ContainerName/fileName?restore -X POST -H "X-Auth-Token: Token"

Thursday, April 16, 2015

How to remove a JCS Instance using REST APIs?


The following example shows how to delete an Oracle Java Cloud Service instance using cURL :

curl -i -X PUT u user:password
-d '{ "
dbaName": "SYSTEM", "dbaPassword": "system_pwd","forceDelete": true}'
-H "Content-
Type:application/json"
-H "X-ID-TENANT-NAME:
IdentityDomain"
https://jaas.oraclecloud.com/jaas/api/v1.1/instances/
IdentityDomain/JCS_Instance_Name



REST APIs provides an alternative to using the web-based user interface to create and manage Oracle Java Cloud Service instances.

For more information: http://docs.oracle.com/cloud/latest/jcs_gs/JSRMR/toc.htm 

Monday, April 13, 2015

How to create a DBCS Instance using REST APIs? (Part 2)

To create an Oracle Database Cloud Service instance 12c, modify the previous script as below :

{
"serviceName": "DB12c-EE-REST",
"version": "12.1.0.2",
"level": "PAAS",
"edition": "EE",
"subscriptionType": "HOURLY",
"description": "DBCS REST TEST",
"shape": "oc3",
"parameters": [
{
"type": "db",
"usableStorage": "10",
"adminPassword": "Manager12#",
"sid": "ORCL",
"pdb": "PDB1",
"failoverDatabase": "no",
"backupDestination": "BOTH",
"cloudStorageContainer": "Storage-froraclejpp/backup_container",
"cloudStorageUser": "jpp_user",
"cloudStoragePwd": " JPP_PASSWORD "
}
],
"vmPublicKeyText": "ssh-rsa AAAAB3NzaC1yc2EAAAABJ= rsa-key-20150105"
}

Friday, April 10, 2015

How to remove a DBCS Instance using REST APIs?

The following example shows how to delete an Oracle Database Cloud Service instance using cURL :

curl -X DELETE
-H "X-ID-TENANT-NAME:
IdentityDomain"
-u
user:password
https://dbaas.oraclecloud.com/jaas/db/api/v1.1/instances/
IdentityDomain/DBCS_Instance_Name




Thursday, April 9, 2015

How to create a DBCS Instance using REST APIs?

The following shows how to create an Oracle Database Cloud Service instance 11g using the REST API:

1.Create a JSON script (createDB.json)
This document defines the details of the service instance.
For example : 
 {
"serviceName": "DB11g-EE-REST",
"version": "11.2.0.4",
"level": "PAAS",
"edition": "EE",
"subscriptionType": "HOURLY",
"description": "DBCS REST TEST",
"shape": "oc3",
"parameters": [
{
"type": "db",
"usableStorage": "10",
"adminPassword": "Manager12#",
"sid": "ORCL",
"failoverDatabase": "no",
"backupDestination": "BOTH",
"cloudStorageContainer": "Storage-froraclejpp/backup_container",
"cloudStorageUser": "jpp_user",
"cloudStoragePwd": " JPP_PASSWORD "
}
],
"vmPublicKeyText": "ssh-rsa AAAAB3NzaC1yc2EAAAABJ= rsa-key-20150105"



2. Invoke the script 

curl -i -X POST -u user:password
-d
@createDB.json
-H "X-ID-TENANT-NAME:
IdentityDomain"
-H "Content-
Type:application/json"
https://dbaas.oraclecloud.com/jaas/db/api/v1.1/instances/
IdentityDomain



3. Check the creation process from the DBCS Overview page 



4. The new DBCS Instance is now Up and Running



 

Friday, April 3, 2015

How to create a JCS Instance using REST APIs?

The following shows how to create an Oracle Java Cloud Service instance using the REST API:

1.Create a JSON script (create.json)
This document defines the details of the service instance.
For example :
{
"serviceName" : "JCSRESTInstance",
"level" : "PAAS",
"subscriptionType" : "HOURLY",
"description" : "Example - REST APIs",
"provisionOTD" : false,
"cloudStorageContainer" : "Storage-froraclejpp/wls_container",
"cloudStorageUser" : "jpp_user",
"cloudStoragePassword" : "JPP_PASSWORD",
"parameters" : [
{
"type" : "weblogic",
"version" : "12.1.3.0.2",
"edition" : "EE",
"domainMode" : "PRODUCTION",
"managedServerCount" : "2",
"adminPort" : "7001",
"deploymentChannelPort" : "9001",
"securedAdminPort" : "7002",
"contentPort" : "7003",
"securedContentPort" : "7004",
"domainName" : "ExampleDomain",
"clusterName" : "ExampleCluster",
"adminUserName" : "weblogic",
"adminPassword" : "OracleM12#",
"nodeManagerPort" : "6555",
"nodeManagerUserName" : "nodeMangerAdmin",
"nodeManagerPassword" : "Manager12#",
"dbServiceName" : "JPP-DB12c-EE",
"dbaName" : "SYS",
"dbaPassword" : "OracleM12#",
"shape" : "oc3",
"domainVolumeSize" : "10G",
"backupVolumeSize" : "50G",
"VMsPublicKey" : "ssh-rsa AAAAB3NzaC1yc2EAAAABJ= rsa-key-20150105"
}
]
}

2. Invoke the script

curl -i -X POST -u user:password
-d
@create.json -H "Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json"
-H "X-ID-TENANT-NAME:
IdentityDomain"
https://jaas.oraclecloud.com/jaas/api/v1.1/instances/
IdentityDomain




3. Check the creation process from the JCS Overview page



4. the new JCS Instance is now Up and Running



Saturday, February 28, 2015

Cloudberry Explorer

The following steps show how to configure Cloudberry Explorer to access Oracle Cloud Storage :

1. Download Cloudberry Explorer software Cloudberry Lab

2. Add a new Openstack connection

3. Specify requested fields as follow :
  • Display name: Oracle Cloud Storage Service
  • User name: Storage-IdentityDomain:user
  • Api key: user_pwd
  • Authentication Service : https://storage.us2.oraclecloud.com/auth/v1.0 

4. Containers and objects are now accessible from Cloudberry Explorer

Friday, February 27, 2015

Cyberduck

Oracle Storage Cloud Service is an Infrastructure as a Service (IaaS) product which provides an object storage solution for files and unstructured data.
Oracle Storage Cloud Service provides REST APIs based on OpenStack Swift.

The REST API can be accessed from any application or programming platform that supports Hypertext Transfer Protocol (HTTP); for example Cyberduck.


The following steps show how to configure Cyberduck to access Oracle Cloud Storage :

1. Download Cyberduck software from https://cyberduck.io/

2. Copy profile file (Oracle Storage Cloud (US Commercial 2).cyberduckprofile) into the profile folder (for example : D:\Program Files (x86)\Cyberduck\profiles)


3. Start Cyberduck and configure as below

Server : storage.us2.oraclecloud.com
Identity Domain : Storage-IdentityDomain:user

4. Access Oracle Cloud Storage Service from Cyberduck