Forum Discussion
Annish_Prashanth
Jul 10, 2019Copper Contributor
Azure REST API - $filter param for time delta throws ProviderError
Hello All, We are facing issues with the Azure API endpoint for fetching security alerts based on given time filter. https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.mic...
hello1990
Apr 14, 2020Copper Contributor
1. u need use '/' instead of '.'
2. seems the $filter in alert response need uppercase letter.
https://management.azure.com/subscriptions/******/providers/Microsoft.Security/alerts?api-version=2019-01-01&$filter=Properties/AlertName eq 'Network_TrafficFromUnrecommendedIP'
this works but if you change to
https://management.azure.com/subscriptions/******/providers/Microsoft.Security/alerts?api-version=2019-01-01&$filter=properties/alertName eq 'Network_TrafficFromUnrecommendedIP'
will failed. event the response json array is lower letter here. hope this will help you.
"properties": {
"vendorName": "Microsoft",
"alertDisplayName": "Traffic detected from IP addresses recommended for blocking",
"alertName": "Network_TrafficFromUnrecommendedIP",
"detectedTimeUtc": "2020-04-01T08:00:00Z",