Skip to main content
Solved

Needs Attention Report - API

  • January 14, 2025
  • 1 reply
  • 33 views

Marshyp
Forum|alt.badge.img

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": []
  }
}

 

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.

Best answer by Marshyp

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.

View original
How helpful was this post to you?

1 reply

Marshyp
Forum|alt.badge.img
  • Author
  • Pro
  • 7 replies
  • Answer
  • January 14, 2025

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings