Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Create Container Comparison

Samuel A. Falvo II edited this page Sep 18, 2013 · 8 revisions

Creating a Container with OpenStack

Creating a container requires at least two, and at most three, things:

  • URL (I list this here because it secretly implies a region to create the bucket in)
  • Account ID (query parameter; apparently a tenant ID? OpenStack docs are ambiguous here)
  • Container name (query parameter)
  • Metadata (optional, encoded in headers)

Note that ACL or permissions-related data cannot be provided through this call.

Returns 201 if successful.

Creating a Container with S3

  • Bucket name (must be DNS compatible; passed as a header)
  • Authorization token (header)
  • Bucket Region (passed inside an XML element; constrains where the bucket is created)
  • Access privileges (header; optional)

Note that the bucket region in S3 has no corresponding counterpart in OpenStack's request; this is because the URL you hit in OpenStack to create the container is already tied to a specific region.

Returns 200 if successful, along with some metadata on the bucket created.

Clone this wiki locally