v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBSensitive Data Scanner
Update Scanning Rule
Update a scanning rule. The request body MUST NOT include a standard_pattern relationship, as that relationship is non-editable. Trying to edit the regex attribute of a rule with a standard_pattern relationship will also result in an error.
patch/api/v2/sensitive-data-scanner/config/rules/{rule_id}
Path parameters
rule_idstring required
The ID of the rule.
Request body
Example request
{
"data": {
"attributes": {
"excluded_namespaces": [
"admin.name"
],
"included_keyword_configuration": {
"character_count": 30,
"keywords": [
"email",
"address",
"login"
]
},
"namespaces": [
"admin"
],
"suppressions": {
"ends_with": [
"@example.com",
"another.example.com"
],
"exact_match": [
"admin@example.com",
"user@example.com"
],
"starts_with": [
"admin",
"user"
]
}
},
"relationships": {
"group": {
"data": {
"type": "sensitive_data_scanner_group"
}
},
"standard_pattern": {
"data": {
"type": "sensitive_data_scanner_standard_pattern"
}
}
},
"type": "sensitive_data_scanner_rule"
}
}Response
OK