Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

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.

Command-line syntax
clm quota-list [-h] [--tenantname NAME | --username NAME]

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.

API syntax
quota_list(gcac, tenantName=None, userName=None)

[(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

GenericCloudAPIClient instance/user authentication.

 

update

Use quota-update from the command line to update allocated quota for the specified tenant and user.

Command-line syntax
clm quota-update [-h] [--waitfor TIME_OUT_SECONDS] [--tenantname NAME | --username NAME] [--cpu NUMBER|-1] [--memory NUMBER|-1] [--server NUMBER|-1] [--diskspace NUMBER|-1]

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.

API syntax
obj = quota_update(gcac, tenantName=None, userName=None, cpu=None, memory=None, server=None, diskspace=None)

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

GenericCloudAPIClient instance/user authentication.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Cloud Lifecycle Management 4.1