<filename>specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/NetworkWatcherFlowLogStatusQuery.json
{
  "parameters" : {
    "api-version" : "2018-01-01",
    "subscriptionId" : "subid",
    "resourceGroupName" : "rg1",
    "networkWatcherName" : "nw1",
    "parameters" : {
      "targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"
    }
  },
  "responses" : {
    "200" : {
      "body" : {
        "targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
        "properties": {
          "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
          "enabled": true
        },
        "flowAnalyticsConfiguration": {
          "networkWatcherFlowAnalyticsConfiguration": {
            "enabled": true,
            "workspaceId": "00000000-0000-0000-0000-000000000000",
            "workspaceRegion": "location1",
            "workspaceResourceId": "/subscriptions/ws_subid/resourcegroups/ws_rg/providers/microsoft.operationalinsights/workspaces/ws1"
          }
        }
      }
    },
    "202" : {
      "body" : {
        "targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
        "properties": {
          "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
          "enabled": true
        },
        "flowAnalyticsConfiguration": {
          "networkWatcherFlowAnalyticsConfiguration": {
            "enabled": true,
            "workspaceId": "00000000-0000-0000-0000-000000000000",
            "workspaceRegion": "location1",
            "workspaceResourceId": "/subscriptions/ws_subid/resourcegroups/ws_rg/providers/microsoft.operationalinsights/workspaces/ws1"
          }
        }
      }
    }
  }
}
