Skip to main content

Hi Ottomaters! 

I am currently working on a script to obtain the “Needs Attention” devices from the API. The idea is to deliver this to our agents by email / Teams so that we can proactively remediate any update problems before they turn into major problems. 

 

I have two devices in my test group which require attention (This is from the dashboard in console):

 

However, when I try to run the API call:

/reports/needs-attention?limit=250&offset=250&o={orgID}

 

It seems that the API returns no results? : 

{
"nonCompliant": {
"total": 0,
"no_known_cves": 0,
"unknown": 0,
"none": 0,
"low": 0,
"medium": 0,
"high": 0,
"critical": 0,
"devices": d]
}
}

 

I suspect that I am missing something really silly and simple here, but I’ll be honest it’s got me scratching my head a bit! Grateful for any pointers as to where I might be going wrong.

 

Thanks in advance.

Cracked it, sorry. 

Turns out I was being a muppet and had accidentally set an offset - Removed this and the details are showing as intended.


Reply