Get Data Collection Results for VM (GET collection)

 

Published: July 12, 2016

Updated: July 12, 2016

Returns all data collection results (Patch, Baseline, Antimalware)

Method

Request Uri

GET

https://<endpoint>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/microsoft.{Compute|ClassicCompute}/virtualMachines/{vm-name}/providers/microsoft.Security/dataCollectionResults?api-version={api-version}

Parameter

Description

subscriptionId

Specifies the subscription Id

resourceGroup

Specifies the resource group that the requested VM is a member of

vm-name

Specifies the name of the virtual machine (VM) for which to retrieve data for

Compute|ClassicCompute

Specifies type of Compute resource (VM) to retrieve. Compute is for VMs created with the new ARM interface and ClassicCompute is for VMs created with the original RDFE interface

Api-version

The version of the Security RP protocol used for this request

Common request headers only.

If successful, the operation returns HTTP status code of 200 (OK).

{
    "value": [
       // Patch results for the VM 
        {
            "id": "/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.ClassicCompute/virtualMachines/{vm-name}/providers/Microsoft.Security/dataCollectionResults/patch",
            "name": "patch",
            "type": "Microsoft.Security/dataCollectionResults",
            "properties": { }
        }, 
       // Baseline results for the VM 
        {
            "id": "/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.ClassicCompute/virtualMachines/{vm-name}/providers/Microsoft.Security/dataCollectionResults/baseline",
            "name": "baseline",
            "type": "Microsoft.Security/dataCollectionResults ",
            "properties": { }
        },

       // Antimalware results for the VM 
        {
            "id": "/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.ClassicCompute/virtualMachines/{vm-name}/providers/Microsoft.Security/dataCollectionResults/antimalware",
            "name": “antimalware”,
            "type": "Microsoft.Security/dataCollectionResults ",
            "properties": { }
        },
  ] }

Show: