All Products
Search
Document Center

GetQuota

Last Updated: May 14, 2018

Description

Returns some quota information of a user.

Request syntax

  1. GET /quotas

Response

Success

The 200 status code and the following quota information are returned:

  1. {
  2. "AvailableClusterResourceType": ["OnDemand","Spot","PrePaid"],
  3. "AvailableClusterInstanceDataDiskType": ["cloud", "ephemeral"],
  4. "AvailableClusterInstanceSystemDiskType": ["cloud"],
  5. "AvailableClusterInstanceType": ["bcs.a2.3xlarge","bcs.a2.large","bcs.a2.xlarge"],
  6. "AvailableSpotInstanceType": ["ecs.sn1.large","ecs.sn1.xlarge"]
  7. }

Attribute description

Currently, three quota attributes can be queried.

Name Type Description
AvailableClusterResourceType array Available instance type.
AvailableClusterInstanceSystemDiskType array Available system disk type.
AvailableClusterInstanceDataDiskType array Available data disk type.
AvailableClusterInstanceType array Available resource type.
AvailableSpotInstanceType array Available spot instance type.