Collecting Instance Status Statistics
Function
This API is used to collect instance status statistics. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
Debugging
You can debug this API in API Explorer.
URI
GET /v3/instances-statistics
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token. You can obtain the token by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the token value. Constraints N/A Range N/A Default Value N/A |
|
X-Language |
No |
String |
Definition Language. Constraints N/A Range
Default Value en-us |
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
total_count |
Integer |
Definition Total number of instances. Range N/A |
|
instances_statistics |
Array of Table 3 objects |
Definition Instance statistics. |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Definition Instance status. Range
|
|
count |
Integer |
Definition Number of instances. Range N/A |
Example Request
Collecting instance status statistics
GET https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/instances-statistics
Example Response
Instance status statistics collected.
{
"total_count" : "10",
"instances_statistics" : [ {
"status" : "normal",
"count" : 1
}, {
"status" : "abnormal",
"count" : 2
}, {
"status" : "creating",
"count" : 3
}, {
"status" : "createfail",
"count" : 4
} ]
}
Status Codes
- Normal
- Abnormal
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