Thanks Edward Zhang, I tried .rlistings, it gives a XML of list of objects. Like this, Is there any way where i can list the containers in a account?
On 19 November 2012 12:07, Hua ZZ Zhang <[email protected]> wrote: > Don't forget to add directive .rlistings to allow listing the whole public > container: > *swift post -r '.r:*,.rlistings' publicContainer* > > *Best Regards, * > > ------------------------------ > > *Edward Zhang(张华)* > > > > > > > > > > > > [image: Inactive hide details for Sujay M ---2012-11-19 13:43:53---Thanks > Edward Zhang,]Sujay M ---2012-11-19 13:43:53---Thanks Edward Zhang, > > > *Sujay M <[email protected]>* > > 2012-11-19 13:43 > > > To > > > Hua ZZ Zhang/China/IBM@IBMCN > > > cc > > > [email protected], openstack-bounces+zhuadl= > [email protected], [email protected], > [email protected] > > > Subject > > > Re: [Openstack] [Swift] Public Container's file listing > > > Thanks Edward Zhang, > > > >>"You can implement access control for objects either for users or > accounts using XContainer- > Read: accountname and X-Container-Write: accountname:username, which > allows any user from the accountname account to read but only allows the > username > user from the accountname account to write." > > How do i create users in a account? Currently i have only admin:admin > account with password admin.(one user per account) > > > > >>"You can also grant public access to objects stored in OpenStack Object > Storage but also limit > public access using the Referer header to prevent site-based content theft > such as hot-linking > (for example, linking to an image filefrom off-site and therefore using > other's bandwidth). > The public container settings are used as the default authorization over > access control lists. > For example, using X-Container-Read:referer:any allows anyone to read from > the container regardless > of other authorization settings. > > Can i give public access that allows anyone to store/write the objects > into a container. I have used referer for making container as public > '.r:*'. Is there anything like this for write? > > > On 19 November 2012 10:36, Hua ZZ Zhang > <*[email protected]*<[email protected]>> > wrote: > > "You can implement access control for objects either for users or > accounts using XContainer- > Read: accountname and X-Container-Write: accountname:username, which > allows any user from the accountname account to read but only allows > the username > user from the accountname account to write." > > "You can also grant public access to objects stored in OpenStack > Object Storage but also limit > public access using the Referer header to prevent site-based content > theft such as hot-linking > (for example, linking to an image filefrom off-site and therefore > using other's bandwidth). > The public container settings are used as the default authorization > over access control lists. > For example, using X-Container-Read:referer:any allows anyone to read > from the container regardless > of other authorization settings." > * > Best Regards, * > > ------------------------------ > > [image: Inactive hide details for Sujay M ---2012-11-19 11:59:55---Hi > all,]Sujay M ---2012-11-19 11:59:55---Hi all, > *Sujay M <**[email protected]* <[email protected]>*>* > Sent by: > openstack-bounces+zhuadl=*[email protected]*<[email protected]> > > > 2012-11-19 11:59 > To > > *[email protected]*<[email protected]>, > *[email protected]* <[email protected]>, * > [email protected]*<[email protected]> > cc > Subject > [Openstack] [Swift] Public Container's file listing > > Hi all, > > Currently it is showing Unauthorized if i give only public container > name for listing of files in the public Container > > > *192.168.56.20:8080/v1/AUTH_test/publicContainer/*<http://192.168.56.20:8080/v1/AUTH_test/publicContainer/> > > > > *192.168.56.20:8080/v1/AUTH_test/publicContainer*<http://192.168.56.20:8080/v1/AUTH_test/publicContainer> > > > Unauthorized > > Is there any way i can list the files publicly? Thanks in advance > > > > -- > Best Regards, > > Sujay M > Final year B.Tech > Computer Engineering > NITK Surathkal > > contact: +918971897571 > _______________________________________________ > Mailing list: > *https://launchpad.net/~openstack*<https://launchpad.net/~openstack> > Post to : > *[email protected]*<[email protected]> > Unsubscribe : > *https://launchpad.net/~openstack*<https://launchpad.net/~openstack> > More help : > *https://help.launchpad.net/ListHelp*<https://help.launchpad.net/ListHelp> > > > > > > > -- > Best Regards, > > Sujay M > Final year B.Tech > Computer Engineering > NITK Surathkal > > contact: +918971897571 > [附件 "pic23265.gif" 被 Hua ZZ Zhang/China/IBM 删除] > > -- Best Regards, Sujay M Final year B.Tech Computer Engineering NITK Surathkal contact: +918971897571
<<graycol.gif>>
<<36487853.gif>>
<<pic17376.gif>>
<<ecblank.gif>>
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

