Mengambil detail log operasi dalam Rentang Waktu tertentu.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetOpLog |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant atau ListUserTenants untuk mendapatkan parameter ini. |
3*** |
| Module |
string |
No |
Modul fitur. Jika parameter ini tidak ditentukan, log operasi untuk semua modul fitur dalam Rentang Waktu tertentu akan dikembalikan. Nilai valid:
|
SECURITY_RULE |
| StartTime |
string |
Yes |
Waktu mulai dalam format yyyy-MM-DD HH:mm:ss. |
2022-03-23 10:00:00 |
| EndTime |
string |
Yes |
Waktu akhir dalam format yyyy-MM-DD HH:mm:ss. |
2022-03-29 10:00:00 |
| PageSize |
integer |
Yes |
Jumlah entri per halaman. Nilai valid:
|
30 |
| PageNumber |
integer |
Yes |
Nomor halaman. Halaman dimulai dari halaman 1. |
1 |
| UserNick |
string |
No |
Nama tampilan pengguna di DMS. |
test_name |
| DatabaseName |
string |
No |
Nama database. |
dmstest@rm-bp1qb97d4b****.mysql.rds.aliyuncs.com:3306【poc_dev】 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total entri Log operasi. |
1 |
| RequestId |
string |
ID permintaan. |
47D56208-DB1D-4FD3-BE32-300E43185488 |
| ErrorCode |
string |
Kode kesalahan. |
403 |
| OpLogDetails |
object |
||
| OpLogDetail |
array<object> |
Daftar detail Log operasi. |
|
|
object |
Detail Log operasi. |
||
| Module |
string |
The functional module for which the operation log is queried. |
安全规则 |
| Database |
string |
The endpoint of the database instance. Catatan
|
dmstest@rm-bp1qb97d4b****.mysql.rds.aliyuncs.com:3306【poc_dev】 |
| UserId |
string |
The ID of the Alibaba Cloud account. |
22275482072787**** |
| OpUserId |
integer |
The ID of the user who performed the operation. |
51**** |
| OpContent |
string |
The details of the operation. |
SELECT * FROM `orders` \n LIMIT 20 |
| UserNick |
string |
The display name of the user. |
test_name |
| OrderId |
integer |
The ID of the ticket or task. Catatan
This parameter is valid only for operations on the functional modules related to tasks and the task management module in system management. |
509**** |
| OpTime |
string |
The time when the operation was performed. |
2022-03-28 16:45:19 |
| ErrorMessage |
string |
Paket kesalahan. |
UnknownError |
| Success |
boolean |
Apakah permintaan berhasil. Nilai valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 1,
"RequestId": "47D56208-DB1D-4FD3-BE32-300E43185488",
"ErrorCode": "403",
"OpLogDetails": {
"OpLogDetail": [
{
"Module": "安全规则",
"Database": "dmstest@rm-bp1qb97d4b****.mysql.rds.aliyuncs.com:3306【poc_dev】",
"UserId": "22275482072787****",
"OpUserId": 0,
"OpContent": "SELECT * FROM `orders` \\n LIMIT 20",
"UserNick": "test_name",
"OrderId": 0,
"OpTime": "2022-03-28 16:45:19"
}
]
},
"ErrorMessage": "UnknownError",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.