Mengambil log kluster yang dihasilkan dalam rentang waktu tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:ListCommonLogs |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
ID kluster. |
ehpc-hz-FYUr32**** |
| From |
integer |
Yes |
Waktu mulai dari rentang waktu. Waktu ini berupa stempel waktu. Nilai ini merupakan Stempel waktu UNIX yang merepresentasikan jumlah detik yang telah berlalu sejak epoch time 1 Januari 1970 pukul 00:00:00 UTC. |
1703821542 |
| To |
integer |
Yes |
Waktu akhir dari rentang waktu. Waktu ini berupa stempel waktu. Nilai ini merupakan Stempel waktu UNIX yang merepresentasikan jumlah detik yang telah berlalu sejak epoch time 1 Januari 1970 pukul 00:00:00 UTC. |
1703821666 |
| ActionName |
array |
No |
Tipe aksi. |
|
|
string |
No |
Tipe aksi. Log dengan tipe aksi tertentu akan dikembalikan. |
CreateCluster |
|
| OperatorUid |
string |
No |
ID akun operator. |
137*** |
| LogRequestId |
string |
No |
ID permintaan dari aksi tersebut. Log yang terkait dengan ID permintaan tertentu akan dikembalikan. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| ActionStatus |
string |
No |
Status aksi. Log yang terkait dengan status aksi tertentu akan dikembalikan. Nilai yang valid:
Valid values:
|
Finished |
| LogType |
string |
No |
Tipe log. Log dengan tipe tertentu akan dikembalikan. |
Operation |
| Resource |
string |
No |
Nama resource yang terlibat dalam aksi tersebut. Log yang terkait dengan resource tertentu akan dikembalikan. Parameter ini tidak disarankan. |
i-abc*** |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai yang valid: 1 hingga 100. Nilai default: 20. |
10 |
| IsReverse |
boolean |
No |
Menentukan apakah hasil ditampilkan dalam urutan terbalik. Nilai default: true |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
464E9919-D04F-4D1D-B375-15989492**** |
| Uid |
string |
ID Akun Alibaba Cloud. |
137*** |
| PageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| TotalCount |
integer |
Total jumlah entri yang dikembalikan. |
15 |
| Logs |
array<object> |
Informasi singkat log operasi. |
|
|
object |
Informasi singkat log tersebut. |
||
| RequestId |
string |
ID permintaan yang terkait dengan aksi yang menghasilkan log tersebut. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| Time |
string |
Waktu saat log dihasilkan. |
2024-08-22 14:21:54 |
| ClusterId |
string |
ID kluster. |
ehpc-hz-9T3xPNezoS |
| OperatorUid |
string |
ID akun operator. |
137*** |
| Action |
string |
Nama aksi yang sesuai dengan log tersebut. |
CreaterCluster |
| Status |
string |
Status aksi dalam log. Nilai yang valid:
|
Finished |
| LogType |
string |
Tipe log. |
Operation |
| Target |
string |
Resource yang terlibat. |
i-abc*** |
| Message |
string |
Pesan log. |
ok |
Contoh
Respons sukses
JSONformat
{
"RequestId": "464E9919-D04F-4D1D-B375-15989492****",
"Uid": "137***",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 15,
"Logs": [
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"Time": "2024-08-22 14:21:54",
"ClusterId": "ehpc-hz-9T3xPNezoS",
"OperatorUid": "137***",
"Action": "CreaterCluster",
"Status": "Finished",
"LogType": "Operation",
"Target": "i-abc***",
"Message": "ok"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.