功能介紹
查詢(xún)單租戶(hù)在VPC服務(wù)下的網(wǎng)絡(luò)資源配額,包括vpc配額、子網(wǎng)配額、安全組配額、安全組規(guī)則配額、 彈性公網(wǎng)IP 配額, vpn 配額等。
調(diào)試
您可以在API Explorer中調(diào)試該接口。
URI
GET /v1/{project_id}/quotas
GET https://{Endpoint}/v1/{project_id}/quotas?type={type}
|
名稱(chēng) |
是否必選 |
參數(shù)類(lèi)型 |
說(shuō)明 |
|---|---|---|---|
|
project_id |
是 |
String |
項(xiàng)目ID,獲取項(xiàng)目ID請(qǐng)參見(jiàn)獲取項(xiàng)目ID。 |
|
type |
否 |
String |
|
請(qǐng)求參數(shù)
無(wú)
請(qǐng)求示例
GET https://{Endpoint}/v1/{project_id}/quotas
響應(yīng)參數(shù)
|
名稱(chēng) |
參數(shù)類(lèi)型 |
說(shuō)明 |
|---|---|---|
|
quotas |
|
名稱(chēng) |
參數(shù)類(lèi)型 |
說(shuō)明 |
|---|---|---|
|
type |
String |
|
|
used |
Integer |
|
|
quota |
Integer |
|
|
min |
Integer |
允許修改的配額最小值 |
通過(guò)接口查詢(xún)單租戶(hù)在VPC服務(wù)下的網(wǎng)絡(luò)資源配額,返回值“-1”,表示配額數(shù)量不限制。
響應(yīng)示例
{
"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": "vpcContainRoutetable",
"used": 0,
"quota": 1,
"min": 0
},
{
"type": "routetableContainRoutes",
"used": 0,
"quota": 200,
"min": 0
},
{
"type": "address_group",
"used": 0,
"quota": 50,
"min": 0
}
]
}
}
狀態(tài)碼
請(qǐng)參見(jiàn)狀態(tài)碼。
錯(cuò)誤碼
請(qǐng)參考錯(cuò)誤碼。
最新文章
- GaussDB配額_GaussDB數(shù)據(jù)庫(kù)配額_高斯數(shù)據(jù)庫(kù)配額_華為云
- 快遞查詢(xún)API接口_快遞批量查詢(xún)_手機(jī)查詢(xún)快遞_位置查詢(xún)
- 手機(jī)查詢(xún)快遞_快遞物流查詢(xún)_快遞查詢(xún)API接口_快遞查詢(xún)
- 快遞查詢(xún)_快遞物流查詢(xún)_快遞查詢(xún)API接口
- 網(wǎng)站域名查詢(xún)
- GaussDB查詢(xún)表結(jié)構(gòu)_通配符字段查詢(xún)表_高斯數(shù)據(jù)庫(kù)查詢(xún)表結(jié)構(gòu)-華為云
