{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cdn/json-schema/microsoft-azure-cdn-security-policy-list-result-schema.json",
  "title": "SecurityPolicyListResult",
  "description": "The response of a SecurityPolicy list operation.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-cdn-security-policies-api-openapi.yml#/components/schemas/SecurityPolicyListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The SecurityPolicy items on this page",
      "items": {
        "$ref": "#/$defs/SecurityPolicy"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AFDStateProperties": {
      "type": "object",
      "description": "The tracking states for afd resources.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/AfdProvisioningState",
          "description": "Provisioning status",
          "readOnly": true
        },
        "deploymentStatus": {
          "$ref": "#/$defs/DeploymentStatus",
          "readOnly": true
        }
      }
    },
    "AfdProvisioningState": {
      "type": "string",
      "description": "Provisioning status",
      "enum": [
        "Succeeded",
        "Failed",
        "Updating",
        "Deleting",
        "Creating"
      ],
      "x-ms-enum": {
        "name": "AfdProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Creating",
            "value": "Creating"
          }
        ]
      }
    },
    "DeploymentStatus": {
      "type": "string",
      "enum": [
        "NotStarted",
        "InProgress",
        "Succeeded",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "DeploymentStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "NotStarted",
            "value": "NotStarted"
          },
          {
            "name": "InProgress",
            "value": "InProgress"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          }
        ]
      }
    },
    "SecurityPolicy": {
      "type": "object",
      "description": "SecurityPolicy association for AzureFrontDoor profile",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SecurityPolicyProperties",
          "description": "The json object that contains properties required to create a security policy",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "SecurityPolicyProperties": {
      "type": "object",
      "description": "The json object that contains properties required to create a security policy",
      "properties": {
        "profileName": {
          "type": "string",
          "description": "The name of the profile which holds the security policy.",
          "readOnly": true
        },
        "parameters": {
          "$ref": "#/$defs/SecurityPolicyPropertiesParameters",
          "description": "object which contains security policy parameters"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/AFDStateProperties"
        }
      ]
    },
    "SecurityPolicyPropertiesParameters": {
      "type": "object",
      "description": "The json object containing security policy parameters",
      "properties": {
        "type": {
          "$ref": "#/$defs/SecurityPolicyType",
          "description": "The type of the Security policy to create."
        }
      },
      "required": [
        "type"
      ]
    },
    "SecurityPolicyType": {
      "type": "string",
      "description": "The type of the Security policy to create.",
      "enum": [
        "WebApplicationFirewall"
      ],
      "x-ms-enum": {
        "name": "SecurityPolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "WebApplicationFirewall",
            "value": "WebApplicationFirewall"
          }
        ]
      }
    }
  }
}