Querying Quota
Function
This API is used to query GeminiDB resource quotas of a tenant.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
gaussdbfornosql::listResourceQuota
Read
-
-
nosql:instance:list
-
URI
GET /v3/{project_id}/quotas
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
datastore_type |
No |
String |
Definition Database type Constraints N/A Range
Default Value If this parameter is not transferred, all instance quotas are queried. |
|
mode |
No |
String |
Definition Instance type Constraints N/A Range
Default Value If datastore_type is not transferred, this parameter is automatically ignored. This parameter is mandatory when datastore_type is transferred. |
|
product_type |
No |
String |
Definition Product type Constraints N/A Range
Default Value N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token You can obtain the token by calling the IAM API by following Obtaining a User Token Through Password Authentication. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
quotas |
Definition Quota information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
resources |
Array of ShowResourcesDetailResponseBody objects |
Definition All resources. |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Definition Quota resource type Constraints This parameter is configured only by instance type. Range N/A |
|
quota |
Integer |
Definition Current quota. If this parameter is set to 0, no quantity limit is set for resources. Range N/A |
|
used |
Integer |
Definition Number of used resources. Range N/A |
Example Requests
GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/quotas?mode=InfluxdbSingle&datastore_type=influxdb
Example Responses
Status code: 200
Successful response
{
"quotas" : {
"resources" : [ {
"type" : "instance",
"quota" : 200,
"used" : 58
} ]
}
}
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
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