Retrieves the health status distribution of nodes or pods over a specified time period.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:GetHealthPercentage |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/openapi/cluster_health/range/health_percentage HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster |
string |
No |
The cluster ID. |
2ijff4be-bf24-4070-89ca-c47c879b0g32 |
| instance |
string |
No |
The instance ID. |
i-wz9d00ut2ska3mlyhn6j |
| start |
number |
Yes |
The start time. |
1725797727754 |
| end |
number |
Yes |
The end time. |
1725801327754 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
SysomOpenAPI.ServerError |
| data |
array<object> |
The returned data. |
|
|
object |
The returned data. |
||
| type |
string |
The health level of the node or pod. Valid values:
|
health |
| value |
integer |
The quantity. |
1 |
| message |
string |
The error details. |
"" |
Examples
Success response
JSON format
{
"code": "SysomOpenAPI.ServerError\n",
"data": [
{
"type": "health",
"value": 1
}
],
"message": "\"\""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.