Mengambil aturan data masking dari kluster PolarDB atau informasi mengenai aturan masking tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeMaskingRules |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk menanyakan detail kluster yang terkait dengan Akun Alibaba Cloud Anda, seperti ID kluster. |
pc-***************** |
| RuleNameList |
string |
No |
Nama aturan masking. |
testrule |
| InterfaceVersion |
string |
No |
Menanyakan aturan data masking atau aturan enkripsi. Nilai yang valid: v1: menanyakan aturan data masking. v2: menanyakan aturan enkripsi data. |
v1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
2F83D131-1C18-4599-889D-729A9D****** |
| Message |
string |
Pesan yang dikembalikan untuk permintaan tersebut. Catatan
Jika permintaan berhasil, nilai Successful dikembalikan. Jika permintaan gagal, pesan kesalahan seperti kode kesalahan akan dikembalikan. |
Successful |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Data |
object |
Data hasil yang dikembalikan. |
|
| RuleList |
array |
Detail mengenai aturan masking. |
|
|
string |
Konfigurasi detail aturan masking. Catatan
Untuk informasi selengkapnya, lihat parameter |
"{\"testrule\":{\"auto\":{\"databases\":[],\"tables\":[\"t1\"],\"columns\":[\"c1\"]},\"applies_to\":[],\"description\":\"This rule will be applied to the columns c1 in table t1\",\"enabled\":\"true\"}}" |
|
| RuleVersion |
string |
Versi aturan masking. Nilai yang valid: v1 dan v2. Nilai default: v1 |
v1 |
| DBClusterId |
string |
ID kluster. |
pc-bp1s826a1up****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2F83D131-1C18-4599-889D-729A9D******",
"Message": "Successful",
"Success": true,
"Data": {
"RuleList": [
"\"{\\\"testrule\\\":{\\\"auto\\\":{\\\"databases\\\":[],\\\"tables\\\":[\\\"t1\\\"],\\\"columns\\\":[\\\"c1\\\"]},\\\"applies_to\\\":[],\\\"description\\\":\\\"This rule will be applied to the columns c1 in table t1\\\",\\\"enabled\\\":\\\"true\\\"}}\""
],
"RuleVersion": "v1"
},
"DBClusterId": "pc-bp1s826a1up******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Abs.InvalidAccount.NotFound | account is not found. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.