GetUsageLimits【获取配额及已使用配额信息】¶
获取租户的配额及已使用配额信息
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Dict | 当前使用情况信息,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
totalSnapshotsUsed | Integer | 镜像和快照已使用数 |
totalFloatingIpsUsed | Integer | 公网 IP已使用数 |
totalVolumesUsed | Integer | 云硬盘个数已使用数 |
maxTotalVolumeGigabytes | Integer | 云硬盘大小总数(GB) |
maxSecurityGroups | Integer | 最大的安全组数量 |
totalInstancesUsed | Integer | 云主机已使用数 |
maxTotalFloatingIps | Integer | 公网 IP总数 |
maxTotalInstances | Integer | 云主机总数 |
maxTotalCores | Integer | CPU内核总数 |
maxTotalSnapshots | Integer | 镜像&快照总数 |
totalCoresUsed | Integer | CPU内核已使用数 |
maxSecurityGroupRules | Integer | 最大安全组策略数量 |
maxTotalKeypairs | Integer | 最大的密钥数量 |
totalRAMUsed | Integer | 内存已使用数 |
maxTotalVolumes | Integer | 云硬盘个数总数 |
totalSecurityGroupsUsed | Integer | 安全组已使用数 |
maxTotalRAMSize | Integer | 内存大小总数 |
totalGigabytesUsed | Integer | 云硬盘大小已使用数(GB) |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "GetUsageLimits"
}
Example Response:
{
"message": "Get usage successfully.",
"code": 200,
"data": {
"totalSnapshotsUsed": 4,
"totalFloatingIpsUsed": 1,
"maxPersonality": 100000,
"maxImageMeta": 100000,
"maxPersonalitySize": 1024000,
"totalVolumesUsed": 2,
"maxTotalVolumeGigabytes": 1024,
"maxSecurityGroups": 12,
"totalInstancesUsed": 1,
"maxTotalFloatingIps": 3,
"maxTotalInstances": 6,
"maxTotalCores": 24,
"maxServerMeta": 100000,
"maxTotalSnapshots": 12,
"totalCoresUsed": 2,
"maxSecurityGroupRules": 1000,
"maxTotalKeypairs": 1000,
"totalRAMUsed": 5120,
"maxTotalVolumes": 12,
"totalSecurityGroupsUsed": 1,
"maxTotalRAMSize": 49152,
"totalGigabytesUsed": 64
}
}