<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/17/2014 11:22 AM, Rajdeep Dua
wrote:<br>
</div>
<blockquote
cite="mid:1392654167.99455.YahooMailNeo@web163806.mail.gq1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:10pt">
<div>Trying to get list of groups in a tenant using Keystone v3
APIs.</div>
<div>It is giving me an error - resource not found even where
there are groups in that tenant. Any idea why this might be
happening</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal;">Thanks</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal;">Rajdeep</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal;">Code - Listing</div>
<div><br>
</div>
<div style="background-color: transparent;"><span>import
keystoneclient.v3.client as ksclient</span></div>
<div style="background-color: transparent;"><span>from
credentials import get_credentials</span></div>
<div style="background-color: transparent;"><br>
</div>
<div style="background-color: transparent;"><span>credentials =
get_credentials()</span></div>
<div style="background-color: transparent;"><span>try:</span></div>
<div style="background-color: transparent;"> keystone =
ksclient.Client(**credentials)</div>
<div style="background-color: transparent;"><br>
</div>
<div style="background-color: transparent;"><span>
groups_list = keystone.groups.list()</span></div>
<div style="background-color: transparent;">...</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
</blockquote>
Many APIs return 404 on access error to avoid giving away info.
Also, not all APIs are accessable on both the public and internal
urls. I suspect this is the latter case.<br>
</body>
</html>