Limits

Display aggregate resource limits for the tenant with which you authenticated. For example:

>>> limits = lava.limits.get()
>>> limits
AbsoluteLimits(disk, node_count, ram, vcpus)

>>> limits.vcpus
AbsoluteLimit(limit, remaining, used)

>>> (limits.vcpus.used, limits.vcpus.remaining, limits.vcpus.limit)
(12, 188, 200)

API Reference

class lavaclient.api.limits.Resource

Limits API methods

get()

Get resource limits for the tenant.

Returns:AbsoluteLimits
class lavaclient.api.response.AbsoluteLimits
describe()

Return a pretty-formatted string that describes the format of the data

to_dict()

Convert the config to a plain python dictionary

disk

See: AbsoluteLimit

node_count

See: AbsoluteLimit

ram

See: AbsoluteLimit

vcpus

See: AbsoluteLimit

class lavaclient.api.response.AbsoluteLimit
describe()

Return a pretty-formatted string that describes the format of the data

to_dict()

Convert the config to a plain python dictionary

limit
remaining
used