Modifies a custom sensitive data detection rule in Data Security Center (DSC).
Operation Description
When you call this operation, you must configure request parameters to specify the rule name, rule ID, and rule content.
Limits
You can call this API operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and the response. Default value: zh_cn. Valid values:
| zh_cn |
Id | long | Yes | The ID of the sensitive data detection rule. You can call the DescribeRules operation to obtain the rule ID. | 1**** |
Name | string | Yes | The name of the sensitive data detection rule. You can call the DescribeRules operation to obtain the rule name. | esw |
Category | integer | No | The content type of the sensitive data detection rule. Valid values:
| 2 |
Content | string | Yes | The content of the sensitive data detection rule. You can specify a regular expression, an algorithm, or keywords that are used to match sensitive fields or text. | (?:\\D|^)((?:(?:25[0-4]|2[0-4]\\d|1\\d{2}|[1-9]\\d{1})\\.)(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){2}(?:25[0-5]|2[0-4]\\d|1[0-9]\\d|[1-9]\\d|[1-9]))(?:\\D|$) |
RiskLevelId | long | No | The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
| 2 |
RuleType | integer | No | The type of the sensitive data detection rule. Valid values:
| 1 |
ProductCode | string | No | The service to which the sensitive data detection rule is applied. Valid values include MaxCompute, OSS, ADS, OTS, and RDS. | RDS |
ProductId | long | No | The ID of the service to which the sensitive data detection rule is applied. Valid values include 1, 2, 3, 4, and 5. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value 3 indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS. | 5 |
WarnLevel | integer | No | The risk level of the alert that is triggered by the sensitive data detection rule. Valid values:
| 1 |
MatchType | integer | No | The match type. Valid values:
| 1 |
Response parameters
Example
Normal return example
JSON
Format
{
"RequestId": "7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}
Error codes
For a list of error codes, visit the API error center.