Mengambil jumlah node atau Pod dalam kluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:GetHostCount |
get |
*Semua sumber daya.
|
None | None |
Sintaks permintaan
GET /api/v1/openapi/cluster_health/range/host_count HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| cluster |
string |
No |
ID kluster. |
1808078950770264 |
| instance |
string |
No |
ID instans. |
i-wz9d00ut2ska3mlyhn6j |
| start |
number |
No |
Waktu mulai. |
1725797727754 |
| end |
number |
No |
Waktu selesai. |
1725801327754 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema tanggapan. |
||
| code |
string |
Kode status.
|
Success |
| data |
array<object> |
Data yang dikembalikan. |
|
|
object |
Data yang dikembalikan. |
||
| time |
integer |
Waktu. |
1725797727754 |
| value |
integer |
Jumlah. |
5 |
| message |
string |
Paket kesalahan.
|
“” |
| request_id |
string |
ID permintaan. |
43A910E9-A739-525E-855D-A32C257F1826 |
| total |
integer |
Jumlah total entri. |
3 |
Contoh
Respons sukses
JSONformat
{
"code": "Success",
"data": [
{
"time": 1725797727754,
"value": 5
}
],
"message": "“”",
"request_id": "43A910E9-A739-525E-855D-A32C257F1826",
"total": 3
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.