{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-front-door/json-schema/microsoft-azure-front-door-managed-rule-set-definition-list-schema.json",
  "title": "ManagedRuleSetDefinitionList",
  "description": "List of managed rule set definitions available for use in a policy.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-front-door-webapplicationfirewallmanagedrulesets-api-openapi.yml#/components/schemas/ManagedRuleSetDefinitionList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The ManagedRuleSetDefinition items on this page",
      "items": {
        "$ref": "#/$defs/ManagedRuleSetDefinition"
      },
      "readOnly": true
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ActionType": {
      "type": "string",
      "description": "Defines the action to take on rule match.",
      "enum": [
        "Allow",
        "Block",
        "Log",
        "Redirect",
        "AnomalyScoring",
        "JSChallenge",
        "CAPTCHA"
      ],
      "x-ms-enum": {
        "name": "ActionType",
        "modelAsString": true,
        "values": [
          {
            "name": "Allow",
            "value": "Allow",
            "description": "Allow"
          },
          {
            "name": "Block",
            "value": "Block",
            "description": "Block"
          },
          {
            "name": "Log",
            "value": "Log",
            "description": "Log"
          },
          {
            "name": "Redirect",
            "value": "Redirect",
            "description": "Redirect"
          },
          {
            "name": "AnomalyScoring",
            "value": "AnomalyScoring",
            "description": "AnomalyScoring"
          },
          {
            "name": "JSChallenge",
            "value": "JSChallenge",
            "description": "JSChallenge"
          },
          {
            "name": "CAPTCHA",
            "value": "CAPTCHA",
            "description": "CAPTCHA"
          }
        ]
      }
    },
    "ManagedRuleDefinition": {
      "type": "object",
      "description": "Describes a managed rule definition.",
      "properties": {
        "ruleId": {
          "type": "string",
          "description": "Identifier for the managed rule.",
          "readOnly": true
        },
        "defaultState": {
          "$ref": "#/$defs/ManagedRuleEnabledState",
          "description": "Describes the default state for the managed rule.",
          "readOnly": true
        },
        "defaultAction": {
          "$ref": "#/$defs/ActionType",
          "description": "Describes the default action to be applied when the managed rule matches.",
          "readOnly": true
        },
        "defaultSensitivity": {
          "$ref": "#/$defs/SensitivityType",
          "description": "Describes the default sensitivity to be applied when the managed rule matches.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Describes the functionality of the managed rule.",
          "readOnly": true
        },
        "paranoiaLevel": {
          "$ref": "#/$defs/ParanoiaLevel",
          "description": "Describes the paranoia level of the managed rule. Applicable only for DRS rules. Omitted for Bot Manager, DDoS, and AI rules.",
          "readOnly": true
        }
      }
    },
    "ManagedRuleEnabledState": {
      "type": "string",
      "description": "Describes if the managed rule is in enabled or disabled state.",
      "enum": [
        "Disabled",
        "Enabled"
      ],
      "x-ms-enum": {
        "name": "ManagedRuleEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          }
        ]
      }
    },
    "ManagedRuleGroupDefinition": {
      "type": "object",
      "description": "Describes a managed rule group.",
      "properties": {
        "ruleGroupName": {
          "type": "string",
          "description": "Name of the managed rule group.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Description of the managed rule group.",
          "readOnly": true
        },
        "rules": {
          "type": "array",
          "description": "List of rules within the managed rule group.",
          "items": {
            "$ref": "#/$defs/ManagedRuleDefinition"
          },
          "readOnly": true
        }
      }
    },
    "ManagedRuleSetDefinition": {
      "type": "object",
      "description": "Describes the a managed rule set definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ManagedRuleSetDefinitionProperties",
          "description": "Properties for a managed rule set definition.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ManagedRuleSetDefinitionProperties": {
      "type": "object",
      "description": "Properties for a managed rule set definition.",
      "properties": {
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state of the managed rule set.",
          "readOnly": true
        },
        "ruleSetId": {
          "type": "string",
          "description": "Id of the managed rule set.",
          "readOnly": true
        },
        "ruleSetType": {
          "type": "string",
          "description": "Type of the managed rule set.",
          "readOnly": true
        },
        "ruleSetVersion": {
          "type": "string",
          "description": "Version of the managed rule set type.",
          "readOnly": true
        },
        "ruleGroups": {
          "type": "array",
          "description": "Rule groups of the managed rule set.",
          "items": {
            "$ref": "#/$defs/ManagedRuleGroupDefinition"
          },
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Human-readable display name for the managed rule set version (e.g., 'Default Ruleset 2.2 (Latest, Recommended)').",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/ManagedRuleSetStatus",
          "description": "Describes the lifecycle status of the managed rule set version.",
          "readOnly": true
        }
      }
    },
    "ManagedRuleSetStatus": {
      "type": "string",
      "description": "Status of a managed rule set.",
      "enum": [
        "Preview",
        "GA",
        "Deprecated",
        "Supported"
      ],
      "x-ms-enum": {
        "name": "ManagedRuleSetStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Preview",
            "value": "Preview",
            "description": "The managed rule set is in preview."
          },
          {
            "name": "GA",
            "value": "GA",
            "description": "The managed rule set is generally available."
          },
          {
            "name": "Deprecated",
            "value": "Deprecated",
            "description": "The managed rule set is deprecated."
          },
          {
            "name": "Supported",
            "value": "Supported",
            "description": "The managed rule set is supported."
          }
        ]
      }
    },
    "ParanoiaLevel": {
      "type": "string",
      "description": "OWASP CRS paranoia level of a managed rule. Applicable only for DRS rules.",
      "enum": [
        "PL1",
        "PL2",
        "PL3",
        "PL4"
      ],
      "x-ms-enum": {
        "name": "ParanoiaLevel",
        "modelAsString": true,
        "values": [
          {
            "name": "PL1",
            "value": "PL1",
            "description": "Paranoia level 1."
          },
          {
            "name": "PL2",
            "value": "PL2",
            "description": "Paranoia level 2."
          },
          {
            "name": "PL3",
            "value": "PL3",
            "description": "Paranoia level 3."
          },
          {
            "name": "PL4",
            "value": "PL4",
            "description": "Paranoia level 4."
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "SensitivityType": {
      "type": "string",
      "description": "Defines the sensitivity for the rule.",
      "enum": [
        "Low",
        "Medium",
        "High"
      ],
      "x-ms-enum": {
        "name": "SensitivityType",
        "modelAsString": true,
        "values": [
          {
            "name": "Low",
            "value": "Low",
            "description": "Low Sensitivity - triggers the rule by larger spikes in traffic"
          },
          {
            "name": "Medium",
            "value": "Medium",
            "description": "Medium Sensitivity - triggers the rule by moderate spikes in traffic"
          },
          {
            "name": "High",
            "value": "High",
            "description": "High Sensitivity - triggers the rule by smaller spikes in traffic"
          }
        ]
      }
    }
  }
}