[Openstack] Swift Container Name Restrictions

2012-01-24 Thread Matthew Wodrich
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?)
Starting character requirements?
Allowable character sets?
Disallowed characters?
Disallowed patterns? (things like .., .-, -., --, ip address-like things,
etc.)
Anything else?

Thanks in advance for any help anyone can provide, even if it's just a link
to a document I somehow missed,
Matt Wodrich
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift Container Name Restrictions

2012-01-24 Thread John Dickinson

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

smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift Container Name Restrictions

2012-01-24 Thread Anne Gentle
You'll also find this info in the Object Storage API document, see
http://docs.openstack.org/api/openstack-object-storage/1.0/content/ch_object-storage-dev-api-storage.html


On Tue, Jan 24, 2012 at 7:27 PM, John Dickinson m...@not.mn wrote:

 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
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to     : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp