EditRecognizeRule
Edits a sensitive field that is defined based on the category and sensitivity level of data in Data Security Guard.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:EditRecognizeRule |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TenantId |
string |
Yes |
The tenant ID. To obtain the tenant ID, perform the following steps: Log on to the DataWorks console. Find your workspace and go to the Data Studio page. On the Data Studio page, click the logon username in the upper-right corner and click User Info in the Menu section. |
102410000 |
| AccountName |
string |
Yes |
The Alibaba Cloud account that is used to create the sensitive data identification rule. Enter the username of the Alibaba Cloud account. |
dsg-uat |
| SensitiveId |
string |
Yes |
The sensitive field ID. You can call the QuerySensNodeInfo operation to query the IDs of all sensitive fields. You can also call the QueryRecognizeRuleDetail operation to query the IDs of specific sensitive fields. |
1a928de7-3962-4e07-93ac-e1973baa1024 |
| SensitiveName |
string |
Yes |
The name of the custom sensitive field. Enter a string that is less than 128 characters in length. |
name |
| NodeId |
string |
Yes |
The ID of the data category. You can call the QuerySensClassification operation to query the ID of all data categories. Then, you can select a data category to create a sensitive field. Enter the ID of the selected data category. |
0ce67949-0810-400f-a24a-cc5ffafe1024 |
| NodeParent |
string |
Yes |
The information about the parent data category of the current data category. You can call the QuerySensClassification operation to obtain the parent data category information. |
Customer/personal/personal_Natural_Information/personal_basic_profile_information |
| TemplateId |
string |
Yes |
The template ID. You can call the QueryDefaultTemplate operation to obtain the current default template ID. |
e1970541-6cf5-4d23-b101-d5b66f6e1024 |
| level |
string |
Yes |
The sensitivity level of the sensitive field. You can select one from all sensitivity levels that are defined in a template as the sensitivity level of the sensitive field, such as level 1 to level 10. |
1 |
| LevelName |
string |
No |
The name of the sensitivity level. You can call the QueryDefaultTemplate operation to obtain the name of the sensitivity level in the related template. |
Confidential |
| SensitiveDescription |
string |
No |
The description of the sensitive field. Enter a string that is less than 128 characters in length. |
This is a sensitive field that identifies the name. |
| Status |
integer |
No |
The status of the sensitive field. Valid values:
|
0 |
| OperationType |
integer |
Yes |
The type of the logical operation. Valid values:
|
0 |
| RecognizeRulesType |
string |
No |
The type of the sensitive data identification rule. Valid values:
|
1 |
| RecognizeRules |
string |
No |
The content of the sensitive data identification rule. You can call the QuerySensNodeInfo operation to query the value of the current parameter for a built-in sensitive field. |
{"contentRule":{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.GenderCond"},"_clazz":"com.alipay.dsg.dal.model.RuleContent"} |
| ContentScan |
string |
No |
Identifies content. You can call the QuerySensNodeInfo operation to query the value of the current parameter for a built-in sensitive field. |
{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.NationalityCond"} |
| ColScan |
string |
No |
Scans fields. The system identifies only fields that are assigned with values.
|
default.qujian.* |
| ColExclude |
string |
No |
Excludes fields. The system does not identify fields that are assigned with values.
|
default.qujian.*6 |
| CommentScan |
string |
No |
Scans content. The value is the text of each column comment in your data asset. Fuzzy match is supported. |
test |
| HitThreshold |
integer |
No |
The hit ratio threshold. If the percentage of sampled data that matches the Named Entity Recognition (NER) model exceeds this threshold (for example, 60%), the data is considered to match the sensitive field. Specify an integer from 0 to 100. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
9990030003 |
| ErrorMessage |
string |
The error message. |
Missing parameter |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
any |
The returned result in the JSON format. |
{ "HttpStatusCode": 200, "Success": true } |
| RequestId |
string |
The request ID. |
10000001 |
Examples
Success response
JSON format
{
"Success": true,
"ErrorCode": "9990030003",
"ErrorMessage": "Missing parameter",
"HttpStatusCode": 200,
"Data": "{ \"HttpStatusCode\": 200, \"Success\": true }",
"RequestId": "10000001"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | BADPARAMETERS | Parameters are missing or in the wrong format. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.