I'm using REST API to acquire security overview information of vms and other resources in Security Center -> Inventory.
I'd like to know:
- How many VMs is unmonitored
- Healthy, unhealthy, and not applicable
- Overview on resources: resource name, is monitored, and fix recommends. (at least the number of completed, not applicable, imcompleted recommends, )
I can't find the right api to choose, and the response from /providers/Microsoft.Security/assessments doesn't meet my need.
I refered this doc https://learn.microsoft.com/en-us/rest/api/securitycenter/assessments/list