{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-system-scan-ruleset-schema.json",
  "title": "SystemScanRuleset",
  "description": "The system scan ruleset.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-systemscanrulesets-api-openapi.yml#/components/schemas/SystemScanRuleset",
  "required": [
    "kind"
  ],
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/VersionedScanRuleset"
    }
  ],
  "properties": {
    "kind": {
      "$ref": "#/$defs/DataSourceType"
    }
  },
  "$defs": {
    "DataSourceType": {
      "description": "The data source type.",
      "enum": [
        "None",
        "Fabric",
        "AzureSubscription",
        "AzureResourceGroup",
        "AzureSynapseWorkspace",
        "AzureSynapse",
        "AdlsGen1",
        "AdlsGen2",
        "AmazonAccount",
        "AmazonS3",
        "AmazonSql",
        "AzureCosmosDb",
        "AzureDataExplorer",
        "AzureFileService",
        "AzureSqlDatabase",
        "ArcEnabledSqlServer",
        "AmazonPostgreSql",
        "AzurePostgreSql",
        "Databricks",
        "SqlServerDatabase",
        "AzureSqlDatabaseManagedInstance",
        "AzureSqlDataWarehouse",
        "AzureMySql",
        "Hdfs",
        "TableauServer",
        "AzureStorage",
        "Teradata",
        "Oracle",
        "PostgreSql",
        "AmazonRedShift",
        "DatabricksHms",
        "SapS4Hana",
        "SapEcc",
        "Snowflake",
        "PowerBI",
        "Trident",
        "Dataverse",
        "DatabricksUnityCatalog"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "DataSourceType",
        "modelAsString": true
      }
    },
    "ProxyResource": {
      "description": "The proxy resource.",
      "type": "object",
      "properties": {
        "id": {
          "description": "The resource identifier.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The resource name.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "VersionedScanRuleset": {
      "description": "The versioned scan ruleset.",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ],
      "properties": {
        "scanRulesetType": {
          "enum": [
            "Custom",
            "System"
          ],
          "type": "string",
          "description": "Versioned scan ruleset properties.",
          "x-ms-enum": {
            "name": "ScanRulesetType",
            "values": [
              {
                "value": "Custom",
                "description": "the scan ruleset type is custom"
              },
              {
                "value": "System",
                "description": "the scan ruleset type is system default"
              }
            ],
            "modelAsString": true
          }
        },
        "status": {
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "type": "string",
          "description": "Status of versioned scan ruleset properties.",
          "readOnly": true,
          "x-ms-enum": {
            "name": "ScanRulesetStatus",
            "modelAsString": true
          }
        },
        "version": {
          "format": "int32",
          "type": "integer",
          "description": "Version of versioned scan ruleset properties.",
          "readOnly": true
        }
      }
    }
  }
}