[Openstack] Swift Container Name Restrictions

John Dickinson me at not.mn
Wed Jan 25 01:27:28 UTC 2012


On Jan 24, 2012, at 5:22 PM, Matthew Wodrich wrote:

> Hi Folks,
> 
> I'm trying to write some scripts to work with Swift containers, but I don't actually know what the restrictions on container names are.  Does anyone know what the specification is, or where I can read up on it?
> 
> For example:
> What are the length requirements for container names? (Maximum/Minimum numbers of characters?)

min is one character, max is 256

> Starting character requirements?

none

> Allowable character sets?

utf8

> Disallowed characters?

non-utf8

> Disallowed patterns? (things like .., .-, -., --, ip address-like things, etc.)

none

> Anything else?

the container name can't contain a "/" since that would be the delimiter between the container and object name (eg /account/container/object)


--John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120124/e40d7e36/attachment.bin>


More information about the Openstack mailing list