Description
Obtains user quotas. Currently, only information about available instance types and available disk types can be obtained.
Parameter description
None.
Response description
The get_quotas method returns a GetResponse object, which encapsulates all interfaces and attributes of the Quotas class.
Attributes of Quotas
| Attribute | Type | Description |
|---|---|---|
| AvailableClusterResourceType | list | Available resource type |
| AvailableClusterInstanceType | list | Available instance type |
| AvailableSpotInstanceType | list | Available spot instance type |
| AvailableClusterInstanceSystemDiskType | list | Available system disk type |
| AvailableClusterInstanceDataDiskType | array | Available data disk type |
Example
try:# Get a Client object.client = Client(......# Get quotasquotas = client.get_quotas()print (quotas.AvailableClusterInstanceType)except ClientError, e:print(e)