Mengambil daftar kelompok mesin dari suatu Proyek.
Deskripsi operasi
Host terdiri atas nama Proyek dan Titik akhir Simple Log Service. Anda harus menentukan sebuah Proyek dalam Host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListMachineGroup |
get |
*Project
|
|
None |
Sintaks permintaan
GET /machinegroups HTTP/1.1
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. |
1 |
| size |
integer |
No |
Jumlah entri per halaman. Nilai maksimum: 500. |
10 |
| groupName |
string |
No |
Nama kelompok mesin. Parameter ini digunakan untuk memfilter kelompok mesin. Pencocokan parsial didukung. |
test-machine-group |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| count |
integer |
Jumlah kelompok mesin yang dikembalikan pada halaman saat ini. |
1 |
| total |
integer |
Total jumlah kelompok mesin yang memenuhi kondisi kueri. |
1 |
| machinegroups |
array |
Kelompok mesin yang memenuhi kondisi kueri. |
[ "test-machine-group-1", "test-machine-group-2" ] |
|
string |
Nama kelompok mesin. |
test-group |
Contoh
Respons sukses
JSONformat
{
"count": 1,
"total": 1,
"machinegroups": [
"test-group"
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.