Skip to content

Commit

Permalink
Add support for filter by deviceId (Azure#10771)
Browse files Browse the repository at this point in the history
Co-authored-by: Liran Chen <[email protected]>
  • Loading branch information
2 people authored and nitegupt committed Sep 25, 2020
1 parent 4bf0e7d commit 149c0a8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"alertType": "IoT_PrivilegedContainer",
"startTimeUtc>": "2020-05-12T06:32:25Z",
"startTimeUtc<": "2020-05-14T06:32:25Z",
"compromisedEntity": "device-1",
"$limit": 1
},
"responses": {
Expand Down Expand Up @@ -37,7 +38,7 @@
}
}
],
"nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Security/iotSecuritySolutions/mySolution/iotAlerts?api-version=2019-08-01&alertType=IoT_PrivilegedContainer&startTimeUtc>=2020-05-12T06:32:25Z&startTimeUtc<=2020-05-14T06:32:25Z&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8",
"nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Security/iotSecuritySolutions/mySolution/iotAlerts?api-version=2019-08-01&alertType=IoT_PrivilegedContainer&startTimeUtc>=2020-05-12T06:32:25Z&startTimeUtc<=2020-05-14T06:32:25Z&compromisedEntity=device-1&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8",
"totalCount": 23
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"resourceGroupName": "myGroup",
"solutionName": "mySolution",
"recommendationType": "IoT_Baseline",
"deviceId": "device-1",
"$limit": 1
},
"responses": {
Expand All @@ -28,7 +29,7 @@
}
}
],
"nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Security/iotSecuritySolutions/mySolution/iotRecommendations?api-version=2019-08-01&recommendationType=IoT_Baseline&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8",
"nextLink": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myGroup/providers/Microsoft.Security/iotSecuritySolutions/mySolution/iotRecommendations?api-version=2019-08-01&recommendationType=IoT_Baseline&deviceId=device-1&$limit=1&$skipToken=903e76ff-17eb-4bac-ac8a-2bc31ab68fd8",
"totalCount": 23
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
"type": "string",
"description": "Filter by alert type"
},
{
"in": "query",
"name": "compromisedEntity",
"required": false,
"type": "string",
"description": "Filter by compromised device"
},
{
"in": "query",
"name": "$limit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
"type": "string",
"description": "Filter by recommendation type"
},
{
"in": "query",
"name": "deviceId",
"required": false,
"type": "string",
"description": "Filter by device id"
},
{
"in": "query",
"name": "$limit",
Expand Down

0 comments on commit 149c0a8

Please sign in to comment.