Querying the Quota of a Tenant (Unavailable Soon)
Function
This API is used to query the default instance quota and total memory quota of a tenant and the maximum and minimum quotas a tenant can apply for. Different tenants have different quotas in different regions.
Request
Request parameters
None
Example request
None
Response
Response parameters
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| quotas | JSON | Yes | Quota information. For details, see Table 3. |
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| resources | Array | Yes | List of quotas. For details, see Table 4. |
| resource_user | JSON | Yes | Information about a resource tenant For details, see Table 5. |
| Parameter | Type | Description |
|---|---|---|
| quota | Integer | Maximum number of instances that can be created and maximum allowed total memory. |
| used | Integer | Number of created instances and used memory. |
| type | String | Values:
|
| unit | String | Resource unit.
|
| max | Integer |
|
| min | Integer |
|
| Parameter | Type | Description |
|---|---|---|
| tenant_id | String | Resource tenant ID |
| tenant_name | Integer | Resource tenant name |
{
"quotas": {
"resources": [
{
"quota": 10,
"used": 3,
"type": "instance",
"min": 1,
"max": 10,
"unit": null
},
{
"quota": 800,
"used": 22,
"type": "ram",
"min": 1,
"max": 800,
"unit": "GB"
}
],
"resource_user": {
"tenant_id": "836152f9838a44089f40f3cf6fd432bf",
"tenant_name": "op_svc_dcs_003"
}
}
}
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.