Tuesday, May 10, 2016

#503 IaaS --> Storage Cloud Service REST API

Simple example -

Create a container -

Again, we begin by authenticating.
The request has the following format -

curl -v -s -X GET -H "X-Storage-User: Storage-YourIdentityDomain:
YourUser" -H "X-Storage-Pass: YourPwd"
https://YourIdentityDomain.storage.oraclecloud.com/auth/v1.0


























I now use X-Auth-Token and X-Storage-URL in subsequent request(s).

curl -v -s -X PUT -H "X-Auth-Token: YourAuthToken"
https://YourStorageUrl/v1/Storage-YourIdentityDomain/NiallC_images

NiallC-images is my Container name





























Use the following REST request to validate creation -


































No comments: