
# 查询配额 - ListQuota
#### 功能介绍
查询租户资源配额。
#### 调试
您可以在[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/IEC/doc?api=ListQuota)中调试该接口，支持自动认证鉴权。API Explorer可以自动生成SDK代码示例，并提供SDK代码示例调试功能。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-iec/iec_05_0600.html)。
#### URI
GET /v1/edgeclouds/quotas
#### 请求参数
表1请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                                                     |
|:---|:---|:---|:---|
| X-Auth-Token | 是    | String | 用户Token。 通过调用IAM服务获取用户Token接口获取（响应消息头中X-Subject-Token的值）。 |
   
#### 响应参数
**状态码：200**
表2响应Body参数 
| 参数     | 参数类型                                                         | 描述          |
|:---|:---|:---|
| quotas | [QuotaResources] object | 查询返回的资源配额列表 |
   
 表3QuotaResources 
| 参数        | 参数类型                                                                 | 描述      |
|:---|:---|:---|
| resources | Array of [QuotaResource] objects | 配额信息列表。 |
   
 表4QuotaResource 
| 参数    | 参数类型    | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|:---|:---|:---|
| type  | String  | 资源类型。 取值范围： - "alarms"   - "edgeclouds"   - "ram"   - "volume"   - "gigabyte"   - "instance"   - "vcpu"   - "root_volume_size"   - "data_volume_count"   - "data_volume_size"   - "image"   - "shareBandwidthIP"   - "vpcContainRoutetable"   - "securityGroupContainRuleQuota"   - "routetableContainRoutes"   - "vpc"   - "securityGroupRule"   - "shareBandwidth"   - "securityGroup"   - "publicIp"   - "subnet"    |
| min   | Integer | 最小配额。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| max   | Integer | 最大配额。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| quota | Integer | 资源的总配额。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| used  | Integer | 已用配额。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   
#### 请求示例
```
GET https://{endpoint}/v1/edgeclouds/quotas
```
#### 响应示例
**状态码：200**
OK
```
{
  "quotas" : {
    "resources" : [ {
      "type" : "vpn",
      "used" : 0,
      "quota" : 50,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "vpc",
      "used" : 22,
      "quota" : 50,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "securityGroup",
      "used" : 3,
      "quota" : 250,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "subnet",
      "used" : 150,
      "quota" : 250,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "firewall",
      "used" : 23,
      "quota" : 100,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "shareBandwidth",
      "used" : 13,
      "quota" : 50,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "publicIp",
      "used" : 55,
      "quota" : 190,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "securityGroupRule",
      "used" : 81,
      "quota" : 10000,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "image",
      "used" : 8,
      "quota" : 100,
      "min" : 0,
      "max" : 500
    }, {
      "type" : "edgeclouds",
      "used" : 22,
      "quota" : 30,
      "min" : 0,
      "max" : 10000
    }, {
      "type" : "gigabyte",
      "used" : 760,
      "quota" : 8000,
      "min" : 0,
      "max" : 4096000
    }, {
      "type" : "instance",
      "used" : 11,
      "quota" : 120,
      "min" : 0,
      "max" : 20480
    }, {
      "type" : "volume",
      "used" : 13,
      "quota" : 100,
      "min" : 0,
      "max" : 100000
    }, {
      "type" : "vcpu",
      "used" : 88,
      "quota" : 1024,
      "min" : 0,
      "max" : 204800
    }, {
      "type" : "ram",
      "used" : 360448,
      "quota" : 5120000,
      "min" : 0,
      "max" : 81920000
    } ]
  }
}
```
#### 状态码
| 状态码 | 描述 |
|:---|:---|
| 200 | OK |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-iec/ErrorCode.html)。
