Forum Discussion

Roger7717's avatar
Roger7717
Copper Contributor
Mar 14, 2025

API Filtering

Hello,

I use the following command to retrieve all computers listed in MDE 

$url = "https://api.security.microsoft.com/api/machines"
$webResponse = Invoke-RestMethod -Method Get -Uri $url -Headers $headers -ErrorAction Stop

I've tried many options to try to filter by os platform to include only *Windows* machines.

Do you know how to add a filters to the url ?

Thank you for your help

No RepliesBe the first to reply

Resources