查询租户配额 - ShowTenantQuota
功能介绍
查询该租户下,所有资源的配额信息,包括已使用配额。
调试
您可以在API Explorer中调试该接口。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
授权项
访问级别
资源类型(*为必须)
条件键
别名
依赖的授权项
bms:serverQuotas:get
read
-
-
-
-
URI
GET /v1/{project_id}/baremetalservers/limits
请求参数
无
请求示例
1 | GET https://{BMS Endpoint}/v1/bbf1946d374b44a0a2a95533562ba954/baremetalservers/limits |
响应参数
参数 | 参数类型 | 描述 |
|---|---|---|
absolute | Object | 租户配额信息,详情请参见表2。 |

以下参数值为“-1”时,表示无数量限制。
参数 | 参数类型 | 描述 |
|---|---|---|
maxTotalInstances | Integer | 裸金属服务器最大申请数量。 |
maxTotalCores | Integer | CPU核数最大申请数量。 |
maxTotalRAMSize | Integer | 内存最大申请容量(单位:MB)。 |
maxTotalKeypairs | Integer | 可以申请的SSH密钥对最大数量。 |
maxServerMeta | Integer | 可输入元数据的最大长度。 |
maxPersonality | Integer | 可注入文件的最大个数。 |
maxPersonalitySize | Integer | 注入文件内容的最大长度(单位:Byte)。 |
maxServerGroups | Integer | 服务器组的最大个数。 |
maxServerGroupMembers | Integer | 服务器组中的最大裸金属服务器数。 |
totalServerGroupsUsed | Integer | 已使用的服务器组个数。 |
maxSecurityGroups | Integer | 安全组最大使用个数。 说明: 具体配额限制请以VPC配额限制为准。 |
maxSecurityGroupRules | Integer | 安全组中安全组规则最大的配置个数。 说明: 具体配额限制请以VPC配额限制为准。 |
maxTotalFloatingIps | Integer | 最大的弹性IP使用个数。 |
maxImageMeta | Integer | 镜像元数据最大的长度。 |
totalInstancesUsed | Integer | 当前裸金属服务器使用个数。 |
totalCoresUsed | Integer | 当前已使用CPU核数。 |
totalRAMUsed | Integer | 当前内存使用容量(单位:MB)。 |
totalSecurityGroupsUsed | Integer | 当前安全组使用个数。 |
totalFloatingIpsUsed | Integer | 当前弹性IP使用个数。 |
响应示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | { "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 } } |
错误码
请参考错误码。

