Menampilkan daftar mesin yang terhubung ke Simple Log Service dalam kelompok mesin tertentu.
Deskripsi operasi
Host terdiri atas nama proyek dan titik akhir Simple Log Service. Anda harus menentukan proyek dalam Host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListMachines |
get |
*Project
|
|
None |
Sintaks permintaan
GET /machinegroups/{machineGroup}/machines HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| machineGroup |
string |
Yes |
Nama kelompok mesin. |
test-group |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama proyek. |
ali-test-project |
| offset |
integer |
No |
Baris tempat kueri dimulai. Nilai default: 0. |
0 |
| size |
integer |
No |
Jumlah entri per halaman. Nilai default: 100. Nilai maksimum: 500. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Mesin yang dikembalikan. |
||
| count |
integer |
Jumlah mesin yang dikembalikan pada halaman saat ini. |
3 |
| total |
integer |
Jumlah total mesin. |
8 |
| machines |
array |
Mesin yang dikembalikan. |
|
| machine |
Informasi mengenai mesin. |
[{"ip": "10.***.***.***", "machine-uniqueid": "", "userdefined-id": "", "lastHeartbeatTime": 1447182247},{"ip": "10.***.***.***", "machine-uniqueid": "","userdefined-id": "","lastHeartbeatTime": 1447182246}] |
Contoh
Respons sukses
JSONformat
{
"count": 3,
"total": 8,
"machines": [
{
"ip": "192.168.xx.x",
"machine-uniqueid": "3B70F4F1-80F7-46C4-A6C1-100****EE647",
"lastHeartbeatTime": 1447182247,
"userdefined-id": "无",
"host-id": "test"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.