quota
This topic describes the verbs, command-line arguments, and API parameters available for the quota noun in the BMC Cloud Lifecycle Management SDK.
list
Use quota-list from the command line to list allocated and consumed quota for the specified tenant and user.
Use quota_list from the API to list allocated and consumed quota for the specified tenant and user. This command returns a list of resources (such as Disk size and Total Memory in GB) with values for allocated quota and used quota.
[(u'resource1', u'allocated_quota', u'used_quota'),
(u'resource2', u'allocated_quota', u'used_quota'),
...]
Command-line argument | API parameter | Description | Required? |
|---|---|---|---|
--tenantname | tenantName | Name of a tenant for which to list quota | Yes |
--username | userName | Name of a user for which to list quota | Yes |
| gcac | Instance of the gcac authentication instance |
|
update
Use quota-update from the command line to update allocated quota for the specified tenant and user.
Use quota-update in the API to update allocated quota for the specified tenant and user. This command returns a Sensor API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
|---|---|---|---|
--tenantname | tenantName | Name of a tenant for which to update quota |
|
--username | userName | Name of a user for whom to update quota. |
|
--cpu | cpu | Maximum number of CPUs allowed, -1 for unlimited |
|
--memory | memory | Maximum amount of memory allowed in GB, -1 for unlimited |
|
--server | server | Maximum number of servers allowed, -1 for unlimited |
|
--diskspace | diskspace | Maximum amount of disk space allowed in GB, -1 for unlimited |
|
--waitfor |
| Time in seconds to wait for response from the server, otherwise return running task details. |
|
| gcac | Instance of the gcac authentication instance |
|