EditRecognizeRule
Modifies the sensitive fields defined in the classification and grading rules of 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. You can log on to the DataWorks console, go to the Data Studio page, click the current username in the upper-right corner, and choose Menu > User Information to obtain the tenant ID. |
102410000 |
| AccountName |
string |
Yes |
The Alibaba Cloud user that creates the sensitive data recognition rule. Enter the username. |
dsg-uat |
| SensitiveId |
string |
Yes |
The ID of the sensitive field. You can call the QuerySensNodeInfo operation to obtain all sensitive field IDs, or call the QueryRecognizeRuleDetail operation to query a specific sensitive field ID. |
1a928de7-3962-4e07-93ac-e1973baa1024 |
| SensitiveName |
string |
Yes |
The custom name of the sensitive field. Enter a string that is less than 128 characters in length. |
name |
| NodeId |
string |
Yes |
The ID of the classification node. You can call the QuerySensClassification operation to obtain all node IDs and select a node to create a sensitive field. Enter the ID of the selected node. |
0ce67949-0810-400f-a24a-cc5ffafe1024 |
| NodeParent |
string |
Yes |
The parent node information of the classification node. You can call the QuerySensClassification operation to obtain the 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 level of the sensitive field. Select a level defined in the template as the level of the sensitive field. For example, levels 1 to 10. |
1 |
| LevelName |
string |
No |
The level name. You can call the QueryDefaultTemplate operation to obtain the level name corresponding to the selected level in the template. Note: This parameter is actually required by the current service. If it is omitted, a 400 error (InternalError.Bad.Parameters: levelName not empty) is returned. |
Confidential |
| SensitiveDescription |
string |
No |
The description of the sensitive field. The value must be a string that is less than 128 characters in length. |
This is a sensitive field that identifies the name. |
| Status |
integer |
No |
The effective status of the sensitive field. Valid values:
|
0 |
| OperationType |
integer |
Yes |
The operation type. Valid values:
|
0 |
| RecognizeRulesType |
string |
No |
The type of the sensitive data recognition rule. Valid values:
|
1 |
| RecognizeRules |
string |
No |
The content of the sensitive data recognition rule. You can call the QuerySensNodeInfo operation and refer to the configuration of the same field in the built-in rules. |
{"contentRule":{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.GenderCond"},"_clazz":"com.alipay.dsg.dal.model.RuleContent"} |
| ContentScan |
string |
No |
The content recognition configuration. You can call the QuerySensNodeInfo operation and refer to the configuration of the same field in the built-in rules. |
{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.NationalityCond"} |
| ColScan |
string |
No |
The field scanning configuration. Only assigned fields are recognized.
|
default.qujian.* |
| ColExclude |
string |
No |
The field exclusion configuration. Assigned fields are not recognized.
|
default.qujian.*6 |
| CommentScan |
string |
No |
The comment scanning configuration. The value is the text of the comment for each field in your data assets. Fuzzy match is supported. |
test |
| HitThreshold |
integer |
No |
The hit threshold. If the percentage of sampled data that hits the named entity recognition (NER) model exceeds the threshold (for example, 60%), the sensitive field is considered hit. Valid values: integers from 0 to 100. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| Success |
boolean |
Indicates whether the call is successful.
|
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 JSON format. |
{ "HttpStatusCode": 200, "Success": true } |
| RequestId |
string |
The request ID, which uniquely identifies the request. |
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.