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

I want to retrieve the list of devices for each recommendation via{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)?


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,491 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Peter 10 Reputation points

    OK, this was actually an easy one. I just need to ASCII encode the / character :)

    0 comments No comments