OK, this was actually an easy one. I just need to ASCII encode the / character :)
How to query Defender 'List devices by recommendation' API with a '/' in the ID
Peter
10
Reputation points
I have a list of recommendations from the Defender for Endpoint API https://api.securitycenter.microsoft.com/api/recommendations
I want to retrieve the list of devices for each recommendation via https://api.securitycenter.microsoft.com/api/recommendations/{id}/machineReferences
However, one of the recommendations in the list from my first API call has an ID of "va--oracle--mysql_connector/j"
Clearly passing an id containing a "/" to the machineReferences endpoint is invalid. Please could someone tell me how to query on this ID (and any others formatted in this way)?
Thanks.