Thanks Edward Zhang,<br><br>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?<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 November 2012 12:07, Hua ZZ Zhang <span dir="ltr"><<a href="mailto:zhuadl@cn.ibm.com" target="_blank">zhuadl@cn.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p><font face="sans-serif">Don't forget to add directive .rlistings to allow listing the whole public container:</font><br>
<font face="sans-serif"><i>swift post -r '.r:*,.rlistings' publicContainer</i></font><br>
<font face="sans-serif"><br>
</font><font face="serif" size="1"><b>Best Regards, </b></font><font face="serif" size="1"><br>
<br>
</font></p><hr align="left" size="2" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td valign="middle" width="298"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"></td><td valign="middle" width="298"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"></td>
</tr>
<tr valign="top"><td valign="middle" width="298">
<ul style="padding-left:0pt"><font face="serif" size="1"><b>Edward Zhang(́Ȼ)</b></font></ul>
</td><td valign="middle" width="298">
<ul style="padding-left:0pt"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></ul>
</td></tr>
<tr valign="top"><td valign="middle" width="298">
<ul style="padding-left:0pt"><font face="serif" size="1"><br>
</font><br>
<img src="cid:2__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="100" width="100"></ul>
</td><td valign="middle" width="298">
<ul style="padding-left:0pt"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></ul>
</td></tr>
<tr valign="top"><td width="298"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"></td><td width="298"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></td>
</tr>
</tbody></table><div class="im">
<br>
<br>
<img src="cid:3__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="Inactive hide details for Sujay M ---2012-11-19 13:43:53---Thanks Edward Zhang," height="16" border="0" width="16"><font color="#424282" face="sans-serif">Sujay M ---2012-11-19 13:43:53---Thanks Edward Zhang,</font><br>
<br>
</div><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td style="background-image:url(cid:4__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com);background-repeat:no-repeat" width="40%">
<ul style="padding-left:72pt"><font face="sans-serif" size="1"><b>Sujay M <<a href="mailto:sujay.m17@gmail.com" target="_blank">sujay.m17@gmail.com</a>></b></font><font face="sans-serif" size="1"> </font>
<p><font face="sans-serif" size="1">2012-11-19 13:43</font></p></ul>
</td><td width="60%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td width="1%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="58"><br>
<div align="right"><font face="sans-serif" size="1">To</font></div></td><td width="100%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"><br>
<ul style="padding-left:7pt"><font face="sans-serif" size="1">Hua ZZ Zhang/China/IBM@IBMCN</font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="58"><br>
<div align="right"><font face="sans-serif" size="1">cc</font></div></td><td width="100%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"><br>
<ul style="padding-left:7pt"><font face="sans-serif" size="1"><a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>, openstack-bounces+zhuadl=<a href="mailto:cn.ibm.com@lists.launchpad.net" target="_blank">cn.ibm.com@lists.launchpad.net</a>, <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>, <a href="mailto:openstack-operators@lists.openstack.org" target="_blank">openstack-operators@lists.openstack.org</a></font></ul>
</td></tr>
<tr valign="top"><td width="1%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="58"><br>
<div align="right"><font face="sans-serif" size="1">Subject</font></div></td><td width="100%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"><br>
<ul style="padding-left:7pt"><font face="sans-serif" size="1">Re: [Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</tbody></table>
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td width="58"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"></td><td width="336"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="" height="1" border="0" width="1"></td>
</tr>
</tbody></table>
</td></tr>
</tbody></table>
<br><div><div class="h5">
<font face="serif" size="3">Thanks Edward Zhang,<br>
<br>
</font><font face="sans-serif" size="3"><br>
>>"</font><font face="serif" size="3">You can implement access control for objects either for users or accounts using XContainer-<br>
Read: accountname and X-Container-Write: accountname:username, which<br>
allows any user from the accountname account to read but only allows the username<br>
user from the accountname account to write."<br>
<br>
How do i create users in a account? Currently i have only admin:admin account with password admin.(one user per account)<br>
<br>
<br>
<br>
>>"You can also grant public access to objects stored in OpenStack Object Storage but also limit <br>
public access using the Referer header to prevent site-based content theft such as hot-linking <br>
(for example, linking to an image filefrom off-site and therefore using other's bandwidth). <br>
The public container settings are used as the default authorization over access control lists. <br>
For example, using X-Container-Read:referer:any allows anyone to read from the container regardless<br>
of other authorization settings.<br>
<br>
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?</font><br>
<font face="serif" size="3"><br>
</font><br>
<font face="serif" size="3">On 19 November 2012 10:36, Hua ZZ Zhang <</font><a href="mailto:zhuadl@cn.ibm.com" target="_blank"><font color="#0000FF" face="serif" size="3"><u>zhuadl@cn.ibm.com</u></font></a><font face="serif" size="3">> wrote:</font>
</div></div><ul style="padding-left:9pt"><div><div class="h5"><font face="sans-serif" size="3">"</font><font face="serif" size="3">You can implement access control for objects either for users or accounts using XContainer-<br>
Read: accountname and X-Container-Write: accountname:username, which<br>
allows any user from the accountname account to read but only allows the username<br>
user from the accountname account to write."<br>
<br>
"You can also grant public access to objects stored in OpenStack Object Storage but also limit <br>
public access using the Referer header to prevent site-based content theft such as hot-linking <br>
(for example, linking to an image filefrom off-site and therefore using other's bandwidth). <br>
The public container settings are used as the default authorization over access control lists. <br>
For example, using X-Container-Read:referer:any allows anyone to read from the container regardless<br>
of other authorization settings.</font><font face="sans-serif" size="3">"<br>
</font><font face="serif" size="1"><b><br>
Best Regards, </b></font><font face="serif" size="1"><br>
</font><br>
<hr align="left" size="2" width="100%"><font face="serif" size="3"><br>
</font></div></div><div><div class="h5"><img src="cid:3__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" alt="Inactive hide details for Sujay M ---2012-11-19 11:59:55---Hi all," height="16" width="16"><font color="#424282" face="sans-serif" size="3">Sujay M ---2012-11-19 11:59:55---Hi all,</font><font face="serif" size="3"><br>
</font>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td width="38%">
<ul style="padding-left:36pt"><font face="sans-serif" size="1"><b>Sujay M <</b></font><a href="mailto:sujay.m17@gmail.com" target="_blank"><font color="#0000FF" face="sans-serif" size="1"><b><u>sujay.m17@gmail.com</u></b></font></a><font face="sans-serif" size="1"><b>></b></font><font face="sans-serif" size="1"> <br>
Sent by: openstack-bounces+zhuadl=</font><a href="mailto:cn.ibm.com@lists.launchpad.net" target="_blank"><font color="#0000FF" face="sans-serif" size="1"><u>cn.ibm.com@lists.launchpad.net</u></font></a><font face="serif" size="3"> </font>
<p><font face="sans-serif" size="1">2012-11-19 11:59</font></p></ul>
</td><td width="62%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="58"><div align="right"><font face="sans-serif" size="1">To</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1">
<ul style="padding-left:36pt"><a href="mailto:openstack-operators@lists.openstack.org" target="_blank"><font color="#0000FF" face="sans-serif" size="1"><u>openstack-operators@lists.openstack.org</u></font></a><font face="sans-serif" size="1">, </font><a href="mailto:openstack@lists.launchpad.net" target="_blank"><font color="#0000FF" face="sans-serif" size="1"><u>openstack@lists.launchpad.net</u></font></a><font face="sans-serif" size="1">, </font><a href="mailto:openstack-dev@lists.openstack.org" target="_blank"><font color="#0000FF" face="sans-serif" size="1"><u>openstack-dev@lists.openstack.org</u></font></a></ul>
</td></tr>
<tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="58"><div align="right"><font face="sans-serif" size="1">cc</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></td>
</tr>
<tr valign="top"><td width="6%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="58"><div align="right"><font face="sans-serif" size="1">Subject</font></div></td><td width="94%"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1">
<ul style="padding-left:36pt"><font face="sans-serif" size="1">[Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</tbody></table>
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td width="58"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></td><td width="336"><img src="cid:1__=C7BBF028DFB79D338f9e8a93df938@cn.ibm.com" height="1" width="1"></td>
</tr>
</tbody></table>
</td></tr>
</tbody></table>
<font face="serif" size="3"><br>
Hi all,</font>
<p><font face="serif" size="3">Currently it is showing Unauthorized if i give only public container name for listing of files in the public Container </font>
</p><p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer/" target="_blank"><font color="#0000FF" face="serif" size="3"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer/</u></font></a><font face="serif" size="3"> </font>
</p><p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer" target="_blank"><font color="#0000FF" face="serif" size="3"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer</u></font></a><font face="serif" size="3"> </font>
</p><p><font face="serif" size="3">Unauthorized </font>
</p><p><font face="serif" size="3">Is there any way i can list the files publicly? Thanks in advance </font>
</p><p><font face="serif" size="3"><br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: +918971897571</font><br>
<tt><font size="3">_______________________________________________<br>
Mailing list: </font></tt><a href="https://launchpad.net/~openstack" target="_blank"><tt><font color="#0000FF" size="3"><u>https://launchpad.net/~openstack</u></font></tt></a><tt><font size="3"><br>
Post to : </font></tt><a href="mailto:openstack@lists.launchpad.net" target="_blank"><tt><font color="#0000FF" size="3"><u>openstack@lists.launchpad.net</u></font></tt></a><tt><font size="3"><br>
Unsubscribe : </font></tt><a href="https://launchpad.net/~openstack" target="_blank"><tt><font color="#0000FF" size="3"><u>https://launchpad.net/~openstack</u></font></tt></a><tt><font size="3"><br>
More help : </font></tt><a href="https://help.launchpad.net/ListHelp" target="_blank"><tt><font color="#0000FF" size="3"><u>https://help.launchpad.net/ListHelp</u></font></tt></a></p><p></p><p></p><p></p><p></p><p></p>
</div></div></ul>
<br>
<font face="serif" size="3"><div><div class="h5"><br>
<br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: +918971897571<br></div></div>
[¸½¼þ "pic23265.gif" ±» Hua ZZ Zhang/China/IBM ɾ³ý]</font>
<p></p><p></p></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Sujay M<br>Final year B.Tech<br>Computer Engineering<br>NITK Surathkal<br><br>contact: +918971897571<br><br>
</div>