Forum Discussion

dkoziupa-ifc's avatar
dkoziupa-ifc
Frequent Visitor
1 year ago
Solved

A Source Rest API that Loops a Parameter

I'm trying to look for all PCs that have whichever software I choose.  As an example, if I select a particular app, I want to see which machine has that app installed.

 

Here is the rest API for finding the machine: List machines API - Microsoft Defender for Endpoint | Microsoft Learn

Here is the rest API for finding the software: List software - Microsoft Defender for Endpoint | Microsoft Learn

Here is the rest API for finding the software per machine: List devices by software - Microsoft Defender for Endpoint | Microsoft Learn

       GET /api/Software/{Id}/machineReferences

 

I don't want to manually create the source hardcoding the ID.  I want the ID to loop through the list of software from the other sofware rest API above.  How do I loop so I don't have to hard code the IDs?

7 Replies