<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 17, 2017 at 4:23 PM, Michael Gale <span dir="ltr"><<a href="mailto:gale.michael@gmail.com" target="_blank">gale.michael@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">    Does anyone know what the equivalent of the following command would be via the API?</div><div style="font-size:12.8px">`openstack limits show --absolute --project <project_name>`</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am using an admin account to pull stats and information from a Mitaka environment, now I can run the above command in bash, looping over each project that exist. <span style="font-size:12.8px">However I would like to get the information using the openstacksdk via Python.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">I can use:</span></div><div style="font-size:12.8px"><span style="font-size:12.8px">`connection.compute.get_<wbr>limits(</span><span style="font-size:12.8px">)`</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"> however that only works for the project I logged in with.</span></div></div></blockquote><div><br></div><div>It could take an id/name, but the REST API doesn't seem to be documented that it takes an id or name, which is probably why it doesn't currently accept them: <a href="http://developer.openstack.org/api-ref/compute/?expanded=show-rate-and-absolute-limits-detail">http://developer.openstack.org/api-ref/compute/?expanded=show-rate-and-absolute-limits-detail</a></div><div><br></div><div>How should we implement this?</div></div></div></div>