Mengkueri daftar kelompok penyimpanan log dengan memanggil operasi DescribeHybridMonitorSLSGroup.
Deskripsi operasi
Topik ini menyediakan contoh cara mengkueri semua kelompok penyimpanan log di akun saat ini. Tanggapan menunjukkan bahwa akun saat ini memiliki dua kelompok penyimpanan log: Logstore_test dan Logstore_aliyun.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeHybridMonitorSLSGroup |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Keyword |
string |
No |
Kata kunci pencarian. |
Logstore |
| PageSize |
string |
No |
Jumlah entri per halaman. Nilai minimum: 1. Nilai default: 10. |
10 |
| PageNumber |
string |
No |
Nomor halaman. Nilai minimum: 1. Nilai default: 1. |
1 |
| SLSGroupName |
string |
No |
Nama kelompok penyimpanan log. |
Logstore_test |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tidak ada. |
||
| Code |
string |
Kode status. Catatan
Nilai 200 menunjukkan keberhasilan. |
200 |
| Message |
string |
Paket error. |
NotFound.SLSGroup |
| RequestId |
string |
ID permintaan. |
66683237-7126-50F8-BBF8-D67ACC919A17 |
| Success |
string |
Apakah operasi berhasil. Nilai valid:
|
true |
| List |
array<object> |
Daftar kelompok penyimpanan log. |
|
|
array<object> |
Tidak ada. |
||
| SLSGroupName |
string |
Nama kelompok penyimpanan log. |
Logstore_test |
| SLSGroupDescription |
string |
Deskripsi kelompok penyimpanan log. |
Logstore group of Alibaba Cloud products. |
| SLSGroupConfig |
array<object> |
Informasi konfigurasi kelompok penyimpanan log. |
|
|
object |
Tidak ada. |
||
| SLSRegion |
string |
The region ID. |
cn-hangzhou |
| SLSProject |
string |
The Simple Log Service project. |
aliyun-project |
| SLSLogstore |
string |
The Logstore. |
Logstore-aliyun-all |
| SLSUserId |
string |
The member ID. Description This parameter is returned when you call the operation by using an administrative account. |
120886317861**** |
| CreateTime |
string |
Stempel waktu saat kelompok penyimpanan log dibuat. Unit: milidetik. |
1652845630000 |
| UpdateTime |
string |
Stempel waktu saat kelompok penyimpanan log terakhir kali dimodifikasi. Unit: milidetik. |
1652845630000 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| Total |
integer |
Jumlah total entri. |
2 |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "NotFound.SLSGroup",
"RequestId": "66683237-7126-50F8-BBF8-D67ACC919A17",
"Success": "true",
"List": [
{
"SLSGroupName": "Logstore_test",
"SLSGroupDescription": "Logstore group of Alibaba Cloud products.",
"SLSGroupConfig": [
{
"SLSRegion": "cn-hangzhou",
"SLSProject": "aliyun-project",
"SLSLogstore": "Logstore-aliyun-all",
"SLSUserId": "120886317861****"
}
],
"CreateTime": "1652845630000",
"UpdateTime": "1652845630000"
}
],
"PageSize": 10,
"PageNumber": 1,
"Total": 2
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s | |
| 412 | %s | %s | |
| 500 | %s | %s | |
| 500 | InternalError | %s | |
| 403 | %s | %s | |
| 404 | %s | %s | |
| 409 | %s | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.