{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-scan-result-list-schema.json",
  "title": "ScanResultList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-scan-result-api-openapi.yml#/components/schemas/ScanResultList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScanResult"
      }
    },
    "nextLink": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "ScanResult": {
      "type": "object",
      "description": "The result of a scan run",
      "properties": {
        "parentId": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "resourceId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "Accepted",
            "InProgress",
            "TransientFailure",
            "Succeeded",
            "Failed",
            "Canceled"
          ]
        },
        "assetsDiscovered": {
          "type": "integer",
          "format": "int64"
        },
        "assetsClassified": {
          "type": "integer",
          "format": "int64"
        },
        "diagnostics": {
          "type": "object"
        },
        "startTime": {
          "type": "string",
          "format": "date-time"
        },
        "endTime": {
          "type": "string",
          "format": "date-time"
        },
        "scanRulesetVersion": {
          "type": "integer",
          "format": "int32"
        },
        "scanRulesetType": {
          "type": "string",
          "enum": [
            "Custom",
            "System"
          ]
        },
        "scanLevelType": {
          "type": "string",
          "enum": [
            "Full",
            "Incremental"
          ]
        },
        "errorMessage": {
          "type": "string"
        }
      }
    }
  }
}