Querying Resource Quotas
Description
This API is used to query the DDS resource quotas of a tenant, including the cluster instance quota, single node instance quota, and replica set instance quota.
|
Name |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. |
Request Parameters
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
X-Auth-Token |
string |
header |
Yes |
User token |
Response Parameters
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
quotas |
Object |
Yes |
Quota information. For more information, see Table 4. |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
resources |
Objects |
Yes |
The resource objects. For more information, see Table 5. |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
type |
String |
Yes |
The quota resource type. Only the instance type is supported. |
|
mode |
String |
Yes |
The instance type.
|
|
quota |
Integer |
Yes |
The existing quota. |
|
used |
Integer |
Yes |
The number of the used instances. |
- Example response
{
"quotas" : {
"resources" : [ {
"type" : "instance",
"mode" : "Sharding",
"quota" : 80,
"used" : 6
}, {
"type" : "instance",
"mode" : "ReplicaSet",
"quota" : 80,
"used" : 9
}, {
"type" : "instance",
"mode" : "Single",
"quota" : 1000,
"used" : 5
} ]
}
}
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot