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  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


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