Is it possible to acquire overview of my resources in Security Center -> Inventory using REST API?

wisdom_MTT 1 Reputation point
2020-11-11T09:53:14.9+00:00

I'm using REST API to acquire security overview information of vms and other resources in Security Center -> Inventory.

I'd like to know:

  1. How many VMs is unmonitored
  2. Healthy, unhealthy, and not applicable
  3. 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://video2.skills-academy.com/en-us/rest/api/securitycenter/assessments/list

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,373 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.