How to retrieve the Core Agent version from a device via API?

Hello-

I need to determine the version of Core Agent that is installed/running on all supported customer devices.

I can see this value in the Sophos Central UI by selecting a specific device, but I need this info for over 2000 supported devices. Manually clicking on each of these devices isn't feasible.

My guess is that I could retrieve this value via API, but I haven't been able to locate which API endpoint I need to call to pull that info for a device.

What is the API I need to call to get the Core Agent version on a device?

Thanks,

Brian



Edit Tags
[edited by: GlennSen at 6:14 AM (GMT -7) on 24 Mar 2022]
Parents Reply
  • Thank you for this information.

    I've run into a bit of trouble in getting to the point where I can call the endpoints API.

    I start out by calling the Authenticate endpoint to get my access token. I then use this access token to call the whoami endpoint- this returns an organization id and calls out my access as being an "organization", following along in the documentation at https://developer.sophos.com/getting-started-organization I then call the enumerate tenants endpoint (using the organization id I just retrieved from the whoami) so I can get a list of tenants and their associated data regions so I can use the data region to in the endpoints API call.

    My trouble is that the return from the enumerate tenants API call is "Forbidden" and "Access Denied".

    Thoughts on where I may be going wrong in my approach?

    Thanks,

    Brian

Children