Popular Code Examples
Upload File to Container
curl
-X PUT -T screenies/hello.jpg -D - \
-H "ETag: 805120e285a7ed28f74024422fe3594" \
-H "Content-Type: image/jpeg" \
-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae" \
-H "X-Object-Meta-Screenie: Hello World" \
https://storage.clouddrive.com/v1/CF_xer7_343/
images/hello.jpg
HTTP/1.1 201 Created
Date: Thu, 09 July 2009 17:03:36 GMT
Server: Apache
Content-Length: 0
ETag: 805120e285a7ed28f74024422fe3594
Content-Type: text/plain
List Container Storage
curl
-X HEAD -D - \
-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae" \
https://storage.clouddrive.com/v1/CF_xer7_343
HTTP/1.1 204 No Content
Date: Thu, 09 July 2009 15:38:14 GMT
Server: Apache
X-Account-Container-Count: 22
X-Account-Bytes-Used: 9891628380
Content-Type: text/plain
CDN Enable Container
curl
-X PUT -D - \
-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae" \
-H "X-CDN-Enabled: True" \
-H "X-TTL: 259200"\
https://storage.clouddrive.com/v1/CF_xer7_343/images
HTTP/1.1 202 Accepted
Date: Thu, 06 Aug 2009 01:34:13 GMT
Server: Apache
X-CDN-URI: http://c10171.r71.cf0.rackcdn.com
X-CDN-SSL-URI: https://c10171.ssl.cf0.rackcdn.com
Content-Length: 0
Connection: close
Content-Type: text/plain; charset-UTF-8