Mengkueri aturan penyamaran data dari kluster PolarDB Basis Data Relasional Cloud-Native atau informasi tentang aturan penyembunyian 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 mengkueri detail kluster yang dimiliki akun Alibaba Cloud Anda, seperti ID kluster. |
pc-***************** |
| RuleNameList |
string |
No |
Nama aturan penyembunyian. |
testrule |
| InterfaceVersion |
string |
No |
Mengkueri aturan penyamaran data atau aturan enkripsi. Nilai valid: v1: mengkueri aturan penyamaran data. v2: mengkueri aturan enkripsi data. |
v1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
2F83D131-1C18-4599-889D-729A9D****** |
| Message |
string |
The message that is returned for the request. Catatan
If the request is successful, Successful is returned. If the request fails, an error message such as an error code is returned. |
Successful |
| Success |
boolean |
Indicates whether the request is successful. Valid value:
|
true |
| Data |
object |
The result data that is returned. |
|
| RuleList |
array |
Details about the masking rules. |
|
|
string |
The detailed configurations of the masking rule. Catatan
For more information, see the |
"{\"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 |
The version of the masking rule. Valid values: v1 and v2. Default value: v1 |
v1 |
| DBClusterId |
string |
The ID of the cluster. |
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.