更新时间:2025-08-19 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
查询配额
功能介绍
查询单租户在VPC服务下的网络资源配额,包括vpc配额、子网配额、安全组配额、安全组规则配额、弹性公网IP配额,vpn配额等。
URI
GET /v1/{project_id}/quotas
    样例: 
    
   GET https://{Endpoint}/v1/{project_id}/quotas?type={type}
   
    参数说明请参见表1。 
    
     
     
      
    
   
  | 
          名称  | 
        
          是否必选  | 
        
          参数类型  | 
        
          说明  | 
       
|---|---|---|---|
| 
          project_id  | 
        
          是  | 
        
          String  | 
        
          项目ID,获取项目ID请参见获取项目ID。  | 
       
| 
          type  | 
        
          否  | 
        
          String  | 
        
         
  | 
       
请求参数
无
请求示例
GET https://{Endpoint}/v1/{project_id}/quotas
  响应参数
| 
         名称  | 
       
         参数类型  | 
       
         说明  | 
      
|---|---|---|
| 
         type  | 
       
         String  | 
       
        
  | 
      
| 
         used  | 
       
         Integer  | 
       
        
  | 
      
| 
         quota  | 
       
         Integer  | 
       
        
  | 
      
| 
         min  | 
       
         Integer  | 
       
         允许修改的配额最小值  | 
      
 
    通过接口查询单租户在VPC服务下的网络资源配额,返回值“-1”,表示配额数量不限制。
响应示例
{
    "quotas": {
        "resources": [
            {
                "type": "vpc",
                "used": 4,
                "quota": 150,
                "min": 0
            },
            {
                "type": "subnet",
                "used": 5,
                "quota": 400,
                "min": 0
            },
            {
                "type": "securityGroup",
                "used": 1,
                "quota": 100,
                "min": 0
            },
            {
                "type": "securityGroupRule",
                "used": 6,
                "quota": 5000,
                "min": 0
            },
            {
                "type": "publicIp",
                "used": 2,
                "quota": 10,
                "min": 0
            },
            {
                "type": "vpn",
                "used": 0,
                "quota": 5,
                "min": 0
            },
            {
                "type": "vpngw",
                "used": 0,
                "quota": 2,
                "min": 0
            },
            {
                "type": "vpcPeer",
                "used": 0,
                "quota": 50,
                "min": 0
            },
            {
                "type":"physicalConnect",
                "used":0,
                "quota":10,
                "min":0
            },
            {
                "type":"virtualInterface",
                "used":0,
                "quota":50,
                "min":0
            },
            {
                "type": "firewall",
                "used": 0,
                "quota": 200,
                "min": 0
            },
            {
                "type": "shareBandwidth",
                "used": 0,
                "quota": 5,
                "min": 0
            },
            {
                "type": "shareBandwidthIP",
                "used": 0,
                "quota": 20,
                "min": 0
            },
            {
                "type": "loadbalancer",
                "used": 0,
                "quota": 10,
                "min": 0
            },
            {
                "type": "listener",
                "used": 0,
                "quota": 10,
                "min": 0
            },
            {
                "type": "flow_log",
                "used": 0,
                "quota": 10,
                "min": 0
            },
            {
                "type": "vpcContainRoutetable",
                "used": 0,
                "quota": 1,
                "min": 0
            },
            {
                "type": "routetableContainRoutes",
                "used": 0,
                "quota": 200,
                "min": 0
            },
            { 
                 "type": "address_group", 
                 "used": 0, 
                 "quota": 50, 
                 "min": 0 
             }
        ]
    }
}
  状态码
请参见状态码。
错误码
请参考错误码。