Mengkueri informasi log audit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryAuditLog |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LogType |
string |
Yes |
Jenis log. Nilai yang valid:
Valid values:
|
function |
| WorkspaceId |
string |
No |
ID dari ruang kerja yang berisi log yang akan dikueri. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| StartDate |
string |
Yes |
Tanggal mulai untuk kueri. Gunakan format yyyyMMdd. Tanggal tidak boleh lebih dari 90 hari sebelum tanggal saat ini. |
20240504 |
| EndDate |
string |
Yes |
Tanggal akhir untuk kueri. Gunakan format yyyyMMdd. |
20240604 |
| ResourceType |
string |
No |
Jenis sumber daya. Untuk informasi lebih lanjut, lihat jenis kerja. |
cube |
| OperatorId |
string |
No |
ID pengguna dari operator. |
95296e95-ca89-4c7d-8af9-dedf0ad0*** |
| OperatorTypes |
string |
No |
Jenis izin, akses, atau operasi. Jika dikosongkan, semua jenis akan dikueri secara default. Untuk nilai yang valid, lihat kode log audit. Untuk menentukan beberapa jenis, pisahkan dengan koma. |
MODIFY |
| UserAccessDevice |
string |
No |
Perangkat yang digunakan untuk akses. Nilai yang valid:
|
PC |
| AccessSourceFlag |
string |
No |
Sumber akses. Nilai yang valid:
|
PUBLIC |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
78C1AA2D-9201-599E-A0BA-6FC462E57A95 |
| Result |
array<object> |
Array dari objek log. |
|
|
object |
Objek log. |
||
| GmtCreate |
string |
Waktu saat log dibuat. |
2024-04-16 13:17:39 |
| OperatorAccountName |
string |
Nama akun dari operator. |
wukaibis |
| OperatorName |
string |
Nama panggilan dari operator. |
buc_344078 |
| OperatorType |
string |
Jenis operasi. |
CREATE |
| TargetName |
string |
Nama dari target operasi. |
test |
| TargetType |
string |
Jenis dari target operasi. |
USER |
| WorkspaceId |
string |
ID ruang kerja. |
87c6b145-090c-43e1-9426-8f93be23**** |
| TargetId |
string |
ID dari target operasi. |
1113***************8500 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "78C1AA2D-9201-599E-A0BA-6FC462E57A95",
"Result": [
{
"GmtCreate": "2024-04-16 13:17:39",
"OperatorAccountName": "wukaibis",
"OperatorName": "buc_344078",
"OperatorType": "CREATE",
"TargetName": "test",
"TargetType": "USER",
"WorkspaceId": "87c6b145-090c-43e1-9426-8f93be23****",
"TargetId": "1113***************8500"
}
],
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Date.Format.Error | Date format conversion error. | Date format conversion error |
| 400 | Date.Check.Error | The end date cannot be greater than the start date. | End date cannot be greater than start date |
| 400 | Date.Exceed.Error | The start date must be within 90 days from the current date. | Start date cannot be 90 days earlier than current date |
| 400 | Log.Type.Error | The log type is incorrect. | The log type is incorrect. |
| 400 | Invalid.Workspace | The workspace is not owned by the organization. | |
| 400 | Invalid.User.Admin | You are not an administrator of this organization. | Only organization administrators can perform this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.