Retrieves the number of nodes or node Pods in a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:GetHostCount |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/openapi/cluster_health/range/host_count HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster |
string |
No |
The cluster ID. |
1808078950770264 |
| instance |
string |
No |
The instance ID. |
i-wz9d00ut2ska3mlyhn6j |
| start |
number |
No |
The start time. |
1725797727754 |
| end |
number |
No |
The end time. |
1725801327754 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
Success |
| data |
array<object> |
The returned data. |
|
|
object |
The returned data. |
||
| time |
integer |
The point in time. |
1725797727754 |
| value |
integer |
The count. |
5 |
| message |
string |
The error message.
|
“” |
| request_id |
string |
The request ID. |
43A910E9-A739-525E-855D-A32C257F1826 |
| total |
integer |
The total number of entries. |
3 |
Examples
Success response
JSON format
{
"code": "Success",
"data": [
{
"time": 1725797727754,
"value": 5
}
],
"message": "“”",
"request_id": "43A910E9-A739-525E-855D-A32C257F1826",
"total": 3
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.