forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
10 KiB
10 KiB
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 |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
quotas |
Quota information. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of ShowResourcesDetailResponseBody objects |
All resources. |
Example Requests
URI example
GET https://{Endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/quotas
Example Responses
Status code: 200
Success
{ "quotas" : { "resources" : [ { "type" : "instance", "quota" : 200, "used" : 58 } ] } }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Parent topic: Quotas