Get Data Collection Results for VM (GET collection)

 

Updated: July 12, 2016

**This API has been deprecated. **

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

Request

Method Request Uri
GET https://<endpoint>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/microsoft.{Compute&#124;ClassicCompute}/virtualMachines/{vm-name}/providers/microsoft.Security/dataCollectionResults?api-version={api-version}

Request Uri Parameters

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

Request Headers

Common request headers only.

Request body

None.

Response

Status code

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

Response body

{  
    "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": { }  
        },  
  ] }  
  

See Also

Security Resource Provider REST API Reference
Data Collection Results (Extension resource)