華為云計(jì)算 云知識(shí) 查詢租戶配額ShowTenantQuota
查詢租戶配額ShowTenantQuota

 

功能介紹

查詢?cè)撟鈶粝?,所有資源的配額信息,包括已使用配額。

調(diào)試

您可以在API Explorer中調(diào)試該接口。

URI

GET /v1/{project_id}/baremetalservers/limits

參數(shù)說明請(qǐng)參見表1。
表1 參數(shù)說明

參數(shù)

是否必選

描述

project_id

項(xiàng)目ID。

獲取方式請(qǐng)參見獲取項(xiàng)目ID。

請(qǐng)求參數(shù)

請(qǐng)求示例

查詢項(xiàng)目ID為bbf1946d374b44a0a2a95533562ba954的租戶配額。
GET https://{BMS Endpoint}/v1/bbf1946d374b44a0a2a95533562ba954/baremetalservers/limits

響應(yīng)參數(shù)

參數(shù)

參數(shù)類型

描述

absolute

Object

租戶配額信息,詳情請(qǐng)參見表2。

以下參數(shù)值為“-1”時(shí),表示無數(shù)量限制。

表2 absolute數(shù)據(jù)結(jié)構(gòu)說明

參數(shù)

參數(shù)類型

描述

maxTotalInstances

Integer

裸金屬服務(wù)器 最大申請(qǐng)數(shù)量。

maxTotalCores

Integer

CPU核數(shù)最大申請(qǐng)數(shù)量。

maxTotal RAM Size

Integer

內(nèi)存最大申請(qǐng)容量(單位:MB)。

maxTotalKeypairs

Integer

可以申請(qǐng)的SSH密鑰對(duì)最大數(shù)量。

maxServerMeta

Integer

可輸入元數(shù)據(jù)的最大長(zhǎng)度。

maxPersonality

Integer

可注入文件的最大個(gè)數(shù)。

maxPersonalitySize

Integer

注入文件內(nèi)容的最大長(zhǎng)度(單位:Byte)。

maxServerGroups

Integer

服務(wù)器組的最大個(gè)數(shù)。

maxServerGroupMembers

Integer

服務(wù)器組中的最大裸金屬服務(wù)器數(shù)。

totalServerGroupsUsed

Integer

已使用的服務(wù)器組個(gè)數(shù)。

maxSecurityGroups

Integer

安全組最大使用個(gè)數(shù)。

說明:

具體配額限制請(qǐng)以VPC配額限制為準(zhǔn)。

maxSecurityGroupRules

Integer

安全組中安全組規(guī)則最大的配置個(gè)數(shù)。

說明:

具體配額限制請(qǐng)以VPC配額限制為準(zhǔn)。

maxTotalFloatingIps

Integer

最大的彈性IP使用個(gè)數(shù)。

maxImageMeta

Integer

鏡像 元數(shù)據(jù)最大的長(zhǎng)度。

totalInstancesUsed

Integer

當(dāng)前裸金屬服務(wù)器使用個(gè)數(shù)。

totalCoresUsed

Integer

當(dāng)前已使用CPU核數(shù)。

totalRAMUsed

Integer

當(dāng)前內(nèi)存使用容量(單位:MB)。

totalSecurityGroupsUsed

Integer

當(dāng)前安全組使用個(gè)數(shù)。

totalFloatingIpsUsed

Integer

當(dāng)前彈性IP使用個(gè)數(shù)。

響應(yīng)示例

{
    "absolute": {
        "maxServerMeta": 128,
        "maxPersonality": 5,
        "maxImageMeta": 128,
        "maxPersonalitySize": 10240,
        "maxSecurityGroupRules": 20,
        "maxTotalKeypairs": 100,
        "totalRAMUsed": 799836,
        "totalInstancesUsed": 21,
        "maxSecurityGroups": 10,
        "totalFloatingIpsUsed": 0,
        "maxTotalCores": -1,
        "totalSecurityGroupsUsed": 1,
        "maxTotalFloatingIps": 10,
        "maxTotalInstances": 100,
        "totalCoresUsed": 148,
        "maxTotalRAMSize": -1,
        "maxServerGroups": -1,
        "maxServerGroupMembers": -1,
        "totalServerGroupsUsed": 1
    }
}

返回值

正常返回值:

返回值

說明

200

服務(wù)器已成功處理了請(qǐng)求。

其他返回值請(qǐng)參考狀態(tài)碼

錯(cuò)誤碼

請(qǐng)參考錯(cuò)誤碼。