{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-scan-list-schema.json",
  "title": "ScanList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-scans-api-openapi.yml#/components/schemas/ScanList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Scan"
      }
    },
    "nextLink": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "CollectionReference": {
      "type": "object",
      "properties": {
        "referenceName": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "ConnectedVia": {
      "type": "object",
      "properties": {
        "referenceName": {
          "type": "string"
        },
        "integrationRuntimeType": {
          "type": "string"
        }
      }
    },
    "Scan": {
      "type": "object",
      "description": "A scan configuration",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "description": "The scan type"
        },
        "properties": {
          "type": "object",
          "properties": {
            "scanRulesetName": {
              "type": "string"
            },
            "scanRulesetType": {
              "type": "string",
              "enum": [
                "Custom",
                "System"
              ]
            },
            "collection": {
              "$ref": "#/$defs/CollectionReference"
            },
            "connectedVia": {
              "$ref": "#/$defs/ConnectedVia"
            },
            "createdAt": {
              "type": "string",
              "format": "date-time"
            },
            "lastModifiedAt": {
              "type": "string",
              "format": "date-time"
            },
            "lastScheduled": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      }
    }
  }
}