<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I've been looking at the APIs for Nova's os-quota-sets, and the docs don't seem to match the implementation. Or perhaps I'm confused--I'm no expert here. Here's what I'm seeing:<br>
<br>
The docs at <<a href="http://api.openstack.org/api-ref-compute.html" target="_blank">http://api.openstack.org/api-ref-compute.html</a>> show the quota API as:<br>
<br>
    GET v2/​{tenant_id}​/os-quota-sets<br>
<br>
However, the nova command-line tool and my experimentation suggest that the correct usage is:<br>
<br>
    GET v2/​{tenant_id}​/os-quota-sets/{tenant_id}<br>
<br>
The docs also show that I can get details, which will show me not just the quotas but also the current usage with:<br>
<br>
    GET v2/​{tenant_id}​/os-quota-sets/​{user_id}​/detail<br>
<br>
I've tried various combinations on this theme and cannot get the 'detail' API to work. I'm not super familiar with the OpenStack code base, but when I looked at the code it appeared that it's not implemented. (The data is there, but I think it's not exposed
 via the API). Moreover, the user quotas only seem to be in Havana while project quotas are in Havana and earlier. But when I browse the API docs, I can't tell what might be available in Havana and what might be available in earlier versions.
<br>
<br>
Horizon (Grizzly) shows detail similar to what the detail API says it provides, but when I look at the nova-api.log file, it's not using the osg-quota-sets/detail API, but appears to be synthesizing the data from the quotas plus the server and flavor details.
<br>
<br>
Am I correct that the docs don't match the implementation? If so, what's the best thing to do? Should I file a bug or should I provide a fix to the docs? (I'm not confident that I know the correct documentation, but I'd be willing to try.)
<br>
<br>
Thanks,<br>
-alain<br>
<br>
</div>
</body>
</html>