Share via

Azure Defender | Filter API by properties fields

Anonymous
2025-02-16T14:10:27.69+00:00

Hi,

I am trying to use this API to fetch detections:

'https://management.azure.com/subscriptions/<subscription_id>/providers/Microsoft.Security/alerts?api-version=2022-01-01&$filter=properties/startTimeUtc gt <datetime>'

However, the results are not filtered by the properties.startTimeUtc field.

Is there a way to make it work?

thanks

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
0 comments No comments

Answer accepted by question author

Givary-MSFT 35,786 Reputation points Microsoft Employee Moderator
2025-02-18T08:31:11.4233333+00:00

@Alon Golombek Thank you for reaching out to us, as per our documentation - https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts/list?view=rest-defenderforcloud-2022-01-01&tabs=HTTP we don't have $filter parameter mentioned otherwise it would have been documented.

For example, if you see this doc - https://learn.microsoft.com/en-us/rest/api/monitor/metrics/list?view=rest-monitor-2023-10-01&tabs=HTTP for Azure monitor, we clearly mentioned over here $filter can be used.

Let me know if you have any further questions, feel free to post back.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.