Querying Quota
Function
This API is used to query GeminiDB resource quotas of a tenant.
URI
GET https://{Endpoint}/v3/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Explanation: Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. Constraints: N/A Values: N/A Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
datastore_type |
No |
String |
Explanation: Database type Constraints: N/A Values:
Default value: If this parameter is not transferred, all instance quotas are queried. |
mode |
No |
String |
Explanation: Instance type Constraints: N/A Values:
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 |
Explanation: Product type Constraints: N/A Values:
Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Explanation: User token You can obtain the token by calling the IAM API by following Obtaining a User Token Through Password Authentication. Constraints: N/A Values: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
quotas |
Explanation: Quota information. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of ShowResourcesDetailResponseBody objects |
Explanation: All resources. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Explanation: Quota resource type Constraints: This parameter is configured only by instance type. Values: N/A |
quota |
Integer |
Explanation: Current quota. If this parameter is set to 0, no quantity limit is set for resources. Values: N/A |
used |
Integer |
Explanation: Number of used resources. Values: N/A |
Example Request
GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/quotas?mode=InfluxdbSingle&datastore_type=influxdb
Example Response
Status code: 200
Successful request
{ "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