<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I reported a bug here: <a href="https://bugs.launchpad.net/openstack-manuals/+bug/1274153">https://bugs.launchpad.net/openstack-manuals/+bug/1274153</a><div><br><div><div>On Jan 29, 2014, at 23:33, Anne Gentle <<a href="mailto:anne@openstack.org">anne@openstack.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi can you point out where you're seeing documentation for the first without tenant_id? <div><br></div><div>At <a href="http://api.openstack.org/api-ref-compute-ext.html#ext-os-quota-sets">http://api.openstack.org/api-ref-compute-ext.html#ext-os-quota-sets</a> only the tenant_id is documented. </div>
<div><br></div><div>This is documented identically at <a href="http://docs.openstack.org/api/openstack-compute/2/content/ext-os-quota-sets.html">http://docs.openstack.org/api/openstack-compute/2/content/ext-os-quota-sets.html</a></div>
<div><br></div><div>Let us know where you're seeing the misleading documentation so we can log a bug and fix it.</div><div>Anne</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 8:48 AM, Vinod Kumar Boppanna <span dir="ltr"><<a href="mailto:vinod.kumar.boppanna@cern.ch" target="_blank">vinod.kumar.boppanna@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi,<br>
<br>
In the Documentation, it was mentioned that there are two API's to see the quotas of a tenant.<br>
<br>
1. v2/{tenant_id}/os-quota-sets - Shows quotas for a tenant<br>
<br>
2. v2/{tenant_id}/os-quota-sets/{tenant_id}/{user_id}<code></code> - Enables an admin to show quotas for a specified tenant and a user<br>
<br>
I guess the first API can be used by a member in a tenant to get the quotas of that tenant. The second one can be run by admin to get the quotas of any tenant or any user.<br>
<br>
But through normal user when i am running any of the below (after authentication)<br>
<br>
$> nova --debug quota-show --tenant <tenant_id> (tenant id of a project in which this user is member)<br>
It is calling the second API i.e v2/{tenant_id}/os-quota-sets/{tenant_id} <br>
<br>
or even when i am calling directly the API <br>
<br>
$> curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" <a href="http://localhost:8774/v2/2665b63d29a1493990ab1c5412fc838d/os-quota-sets/" target="_blank">
http://localhost:8774/v2/<tenant_id>/os-quota-sets/</a><br>
It says the "Resource not found".<br>
<br>
So, Is the first API is available?<br>
<br>
Regards,<br>
Vinod Kumar Boppanna<br>
</div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></body></html>