{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-synapse-analytics/json-schema/microsoft-azure-synapse-analytics-data-masking-policy-schema.json",
  "title": "DataMaskingPolicy",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-synapse-analytics-sqlpools-datamaskingpolicies-api-openapi.yml#/components/schemas/DataMaskingPolicy",
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "type": "object",
  "properties": {
    "properties": {
      "x-ms-client-flatten": true,
      "$ref": "#/$defs/DataMaskingPolicyProperties",
      "description": "The properties of the data masking policy."
    },
    "location": {
      "type": "string",
      "readOnly": true,
      "description": "The location of the data masking policy."
    },
    "kind": {
      "type": "string",
      "readOnly": true,
      "description": "The kind of data masking policy. Metadata, used for Azure portal."
    },
    "managedBy": {
      "type": "string",
      "readOnly": true,
      "description": "Fully qualified resource ID of the sql pool"
    }
  },
  "$defs": {
    "DataMaskingPolicyProperties": {
      "type": "object",
      "properties": {
        "dataMaskingState": {
          "type": "string",
          "description": "The state of the data masking policy.",
          "enum": [
            "Disabled",
            "Enabled"
          ],
          "x-ms-enum": {
            "modelAsString": false,
            "name": "DataMaskingState"
          }
        },
        "exemptPrincipals": {
          "type": "string",
          "description": "The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries."
        },
        "applicationPrincipals": {
          "type": "string",
          "description": "The list of the application principals. This is a legacy parameter and is no longer used.",
          "readOnly": true
        },
        "maskingLevel": {
          "type": "string",
          "description": "The masking level. This is a legacy parameter and is no longer used.",
          "readOnly": true
        }
      },
      "required": [
        "dataMaskingState"
      ],
      "description": "The properties of a database data masking policy."
    },
    "ProxyResource": {
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}