<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;"><br><div><div>On Jan 29, 2014, at 22:48, Vinod Kumar Boppanna <<a href="mailto:vinod.kumar.boppanna@cern.ch">vinod.kumar.boppanna@cern.ch</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">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 class="code"></code><span class="Apple-converted-space"> </span>- 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}<span class="Apple-converted-space"> </span><br><br>or even when i am calling directly the API<span class="Apple-converted-space"> </span><br><br>$> curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json"<span class="Apple-converted-space"> </span><a href="http://localhost:8774/v2/2665b63d29a1493990ab1c5412fc838d/os-quota-sets/" target="_blank">http://localhost:8774/v2/<tenant_id>/os-quota-sets/</a><br></div></div></blockquote><div><br></div><div>I think the documentation is missing <tenant_id> behind os-quota-sets/</div>It should be like <span style="font-family: Tahoma; font-size: 10pt;">curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json"</span><span style="font-family: Tahoma; font-size: 10pt;"> </span><a href="http://localhost:8774/v2/2665b63d29a1493990ab1c5412fc838d/os-quota-sets/" target="_blank" style="font-family: Tahoma; font-size: 10pt;">http://localhost:8774/v2/<tenant_id>/os-quota-sets/</a><tenant_id></div><div><br><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">It says the "Resource not found".<br><br>So, Is the first API is available?<br><br>Regards,<br>Vinod Kumar Boppanna<br></div>_______________________________________________<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">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div></blockquote></div><br></body></html>