Forum Discussion

MattBurrows's avatar
MattBurrows
Brass Contributor
Feb 10, 2022

API GET for Defender TVM

Hi Guys,

 

I am running GET on "https://api-eu.securitycenter.windows.com/api/vulnerabilities" to pull all my vulnerabilities. What I am noticing is there is a lot of results with Exposed Machines that equal 0, while I only want to show Vulns that is equal to or greater than 1 (so shows all vulns on any of my machines). 

 

In theory I should be able to do this via the below ("ge" = ">=")

https://api-eu.securitycenter.windows.com/api/vulnerabilities?$filter=exposedMachines ge 1 

But I am getting the below error:

 

    "error": {
        "code""BadRequest",
        "message""Filter parameter is invalid",
 
I have tried various other ways that is mentioned online but nothing seems to work.
 
No doubt its something so simple.
 
Cheers.

Resources