forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alert update operation (Azure#14840)
* add new resources * Add resources to markdown * Modify routes * Add systemData * Add systemData to defenderSettings * Add missing parameter * Add more systemData * Fix example * Add new API version * Remove redundant change * update markdown * Add operations to new API version * Update list filters * update description * update examples * Update examples * Add missing properties * Add missing properties * Rename property * Add alert editing * Update editable properties * Update example * update put to patch * Separate patch request to a different model * Share enum * update example * update patch model * Undo break change * small update Co-authored-by: Orel Kayam <orkayam@microsoft.com>
- Loading branch information
Showing
4 changed files
with
189 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...-manager/Microsoft.IoTSecurity/preview/2021-07-01-preview/examples/Alerts/PatchAlert.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"iotDefenderLocation": "eastus", | ||
"deviceGroupName": "default", | ||
"alertId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", | ||
"alertPatchModel": { | ||
"properties": { | ||
"severity": "Medium", | ||
"status": "InProgress" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/default/alerts/903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", | ||
"name": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", | ||
"type": "Microsoft.IoTSecurity/alerts", | ||
"properties": { | ||
"systemAlertId": "903e76ff-17eb-4bac-ac8a-2bc31ab68fd8", | ||
"azureResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/locations/eastus/deviceGroups/default/devices/device-1", | ||
"alertType": "IoT_PrivilegedContainer", | ||
"startTimeUtc": "2020-05-13T06:32:25Z", | ||
"endTimeUtc": "2020-05-13T06:32:25Z", | ||
"entities": [ | ||
{ | ||
"$id": "1", | ||
"CommandLine": "docker run --privileged", | ||
"Type": "process" | ||
} | ||
], | ||
"extendedProperties": { | ||
"CommandLine": "docker run --privileged", | ||
"User Name": "aUser", | ||
"UserId": "", | ||
"ParentProcessId": 1593, | ||
"DeviceId": "device-1" | ||
}, | ||
"severity": "Medium", | ||
"intent": "PreAttack", | ||
"productComponentName": "IoT Hub", | ||
"status": "InProgress" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-04-27T21:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |