Mengkueri kelompok mesin sebuah Proyek.
Deskripsi operasi
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in 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 |
Schema of Response |
||
| count |
integer |
The number of machine groups that are returned on the current page. |
1 |
| total |
integer |
The total number of machine groups that meet the query conditions. |
1 |
| machinegroups |
array |
The machine groups that meet the query conditions. |
[ "test-machine-group-1", "test-machine-group-2" ] |
|
string |
The name of the machine group. |
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.