Querying Instance Statistics
Function
This API is used to query instance statistics. Before calling this API:
- Learn how to authenticate this API.
URI
GET https://{Endpoint}/v3/instances-statistics
Request Parameters
None
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| total_count | Integer | Total number of instances. |
| instances_statistics | Array of Table 2 objects | Instance statistics. |
Example Request
Querying instance statistics
GET https://gaussdb-opengauss.eu-west-101.myhuaweicloud.eu/v3/instances-statistics
Example Response
Instance statistics queried.
{
"total_count" : "10",
"instances_statistics" : [ {
"status" : "normal",
"count" : 1
}, {
"status" : "abnormal",
"count" : 2
}, {
"status" : "creating",
"count" : 3
}, {
"status" : "createfail",
"count" : 4
} ]
} Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.