v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBSensitive Data Scanner
Create Scanning Rule
Create a scanning rule in a sensitive data scanner group, ordered last. The posted rule MUST include a group relationship. It MUST include either a standard_pattern relationship or a regex attribute, but not both. If included_attributes is empty or missing, we will scan all attributes except excluded_attributes. If both are missing, we will scan the whole event.
post/api/v2/sensitive-data-scanner/config/rules
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
Example response
{
"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"
}
}