Melakukan kueri log berdasarkan ID permintaan. Struktur pemisahan log tiga lapis Action-Stage-Method memungkinkan pengguna mengkueri log untuk aksi tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:GetCommonLogDetail |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| From |
integer |
Yes |
Waktu mulai dari rentang waktu di mana log yang ingin Anda kueri dihasilkan. Waktu ini berupa stempel waktu. Nilai ini adalah 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 di mana log yang ingin Anda kueri dihasilkan. Waktu ini berupa stempel waktu. Nilai ini adalah Stempel waktu UNIX yang merepresentasikan jumlah detik yang telah berlalu sejak epoch time 1 Januari 1970, pukul 00:00:00 UTC. |
1703821666 |
| LogRequestId |
string |
Yes |
ID permintaan. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| HiddenProcess |
boolean |
No |
Menentukan apakah proses setiap langkah disembunyikan. Nilai yang valid:
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*** |
| OperatorUid |
string |
ID akun operator. |
239*** |
| Action |
string |
Nama aksi. |
CreateCluster |
| ClusterId |
string |
ID kluster. |
ehpc-hz-abc*** |
| LogType |
string |
Tipe log. |
operation |
| LogDetail |
array<object> |
Informasi mengenai log. |
|
|
array<object> |
Informasi mengenai log. |
||
| StageName |
string |
Nama tahap log. |
ConfigNetwork |
| Stages |
array<object> |
Informasi mengenai tahapan log. |
|
|
object |
Informasi mengenai tahap log. |
||
| RequestId |
string |
ID permintaan yang terkait dengan log. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| Time |
string |
Waktu saat log dihasilkan. |
2024-08-22 14:21:54 |
| Method |
string |
Metode yang terlibat dalam log. |
CreateSecurityGroup |
| Status |
string |
Status aksi yang terlibat dalam log. Nilai yang valid:
|
Finished |
| LogLevel |
string |
Tingkat log. Nilai yang valid:
Valid values:
|
INFO |
| Target |
string |
Sumber daya yang terlibat dalam log. |
sg-bcd*** |
| Message |
string |
Pesan output log. |
Successfully created security group sg-bcd*** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "464E9919-D04F-4D1D-B375-15989492****\n",
"Uid": "137***",
"OperatorUid": "239***",
"Action": "CreateCluster",
"ClusterId": "ehpc-hz-abc***",
"LogType": "operation",
"LogDetail": [
{
"StageName": "ConfigNetwork",
"Stages": [
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"Time": "2024-08-22 14:21:54\n",
"Method": "CreateSecurityGroup",
"Status": "Finished",
"LogLevel": "INFO",
"Target": "sg-bcd***",
"Message": "Successfully created security group sg-bcd***"
}
]
}
]
}
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.