AutomoxAutomox

Needs Attention Report - API

Marshyp
January 14, 2025 at 3:09 pm UTC
#reporting#updates#automation#api

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? : 

json13 lines
{
  "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.

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (1)

MarshypJanuary 14, 2025
#1

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.