Before uploading any data to OpenStack Object Storage, you must create a storage container. You do this with a PUT request; cURL can be used for that, too.
Example 4.3. cURL Create Storage Container
curl–X PUT-D- \-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae"\https://storage.swiftdrive.com/v1/CF_xer7_343/images
HTTP/1.1 201 Created
Date: Thu, 09 Jul 2009 17:03:36 GMT
Server: Apache
Content-Length: 0
Content-Type: text/plain
Returning an HTTP status code of 201 (Created) indicates that the container was successfully created.
