On Tue, Jan 17, 2017 at 4:23 PM, Michael Gale <gale.mich...@gmail.com>
wrote:

> Hello,
>
>     Does anyone know what the equivalent of the following command would be
> via the API?
> `openstack limits show --absolute --project <project_name>`
>
> 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. However I would like to get the information using the
> openstacksdk via Python.
>
> I can use:
> `connection.compute.get_limits()`
>  however that only works for the project I logged in with.
>

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:
http://developer.openstack.org/api-ref/compute/?expanded=show-rate-and-absolute-limits-detail

How should we implement this?
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to