All Products
Search
Document Center

DataWorks:GetOpSensitiveData

Last Updated:Jun 11, 2026

Mengkueri rekaman yang dibuat pada tanggal tertentu untuk akses ke data sensitif di semua workspace DataWorks penyewa.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

Name

string

Yes

Parameter yang dapat Anda konfigurasi untuk mengkueri rekaman akses. Nilai valid:

  • dbType

  • instanceName

  • databaseName

  • projectName

  • clusterName

Contoh berikut menunjukkan parameter yang dikonfigurasi untuk mengkueri rekaman akses data sensitif di database abc pada instans Gudang Data Real-time ABC: [ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"} ]

Anda harus mengonfigurasi parameter berdasarkan Mesin komputasi yang digunakan dalam bisnis Anda.

[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ]

PageSize

integer

Yes

Jumlah entri per halaman. Nilai minimum: 1. Nilai maksimum: 1000.

1

PageNo

integer

Yes

Nomor halaman. Nilai valid: 1 hingga 1000.

100

Date

string

Yes

Tanggal pembuatan rekaman akses. Tentukan nilai dalam format yyyyMMdd.

20210116

OpType

string

No

Operasi yang dilakukan pada data. Nilai valid:

  • SQL_SELECT: menentukan operasi akses data. Misalnya, menjalankan Pernyataan SQL SELECT untuk mengkueri data.

  • TUNNEL_DOWNLOAD: menentukan operasi unduh data. Misalnya, menjalankan perintah Tunnel untuk mengunduh data.

SQL_SELECT

Elemen respons

Element

Type

Description

Example

object

The returned result.

OpSensitiveData

string

The information about the access records of the sensitive data. The information includes totalCount and opRiskDatas. opRiskDatas includes the following parameters:

  • sensType: the type of the sensitive data.

  • sensLevel: the sensitivity level of the sensitive data. A larger value indicates a higher sensitivity level.

  • opType: the type of the operation.

  • sql: the SQL statement that is executed.

  • opAccount: the account that is used to perform the operation.

  • opTime: the time when the operation was performed.

"opSensDatas": [ { "sensLevel": "L4", "opTime": "2021-02-07 00:14:51", "opAccount": "ALIYUN$dsg_test", "sensType": "Mobile phone number", "sql": "select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';" } ], "totalCount": 6

RequestId

string

The request ID.

0000-ABCD-EFG****

Contoh

Respons sukses

JSONformat

{
  "OpSensitiveData": "\"opSensDatas\": [       {         \"sensLevel\": \"L4\",         \"opTime\": \"2021-02-07 00:14:51\",         \"opAccount\": \"ALIYUN$dsg_test\",         \"sensType\": \"Mobile phone number\",         \"sql\": \"select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';\"       }     ],     \"totalCount\": 6",
  "RequestId": "0000-ABCD-EFG****"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 Invalid.Param The request parameter is invalid.
500 InternalError.DQC.BizError An internal error occurred.
403 Forbidden.NoTenant The tenant information cannot be obtained using user ID.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.