Skip to content

Commit b09b155

Browse files
authored
add optional field scanResultsEventGridTopicResourceId (#25508)
* add scanResultsEventGridTopicResourceId * fix typo * prettier * remove "required": false,
1 parent 2fff12c commit b09b155

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

specification/security/resource-manager/Microsoft.Security/preview/2022-12-01-preview/defenderForStorageSettings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"x-ms-client-flatten": true,
166166
"$ref": "#/definitions/OnUploadProperties"
167167
},
168+
"scanResultsEventGridTopicResourceId": {
169+
"type": "string",
170+
"description": "Optional. Resource id of an Event Grid Topic to send scan results to."
171+
},
168172
"operationStatus": {
169173
"type": "object",
170174
"$ref": "#/definitions/OperationStatus",

specification/security/resource-manager/Microsoft.Security/preview/2022-12-01-preview/examples/DefenderForStorage/GetDefenderForStorageSettings_example.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
"isEnabled": true,
1515
"malwareScanning": {
1616
"onUpload": {
17-
"isEnabled": false,
17+
"isEnabled": true,
1818
"capGBPerMonth": -1
19-
}
19+
},
20+
"scanResultsEventGridTopicResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic"
2021
},
2122
"sensitiveDataDiscovery": {
2223
"isEnabled": false

specification/security/resource-manager/Microsoft.Security/preview/2022-12-01-preview/examples/DefenderForStorage/PutDefenderForStorageSettings_example.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"onUpload": {
1111
"isEnabled": true,
1212
"capGBPerMonth": -1
13-
}
13+
},
14+
"scanResultsEventGridTopicResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic"
1415
},
1516
"sensitiveDataDiscovery": {
1617
"isEnabled": true
@@ -32,6 +33,7 @@
3233
"isEnabled": true,
3334
"capGBPerMonth": -1
3435
},
36+
"scanResultsEventGridTopicResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic",
3537
"operationStatus": {
3638
"code": "Succeeded"
3739
}

0 commit comments

Comments
 (0)