{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RuleStack",
  "description": "A rule stack containing security policy for Cloud NGFW firewall instances.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/cloud-ngfw-api-rule-stack-schema.json",
  "type": "object",
  "properties": {
    "RuleStackName": {
      "type": "string",
      "description": "Unique name of the rule stack."
    },
    "RuleStackEntry": {
      "type": "object",
      "properties": {
        "Description": {
          "type": "string"
        },
        "Scope": {
          "type": "string",
          "enum": [
            "Local",
            "Global"
          ]
        },
        "MinAppIdVersion": {
          "type": "string",
          "description": "Minimum App-ID content version required."
        },
        "LookupXForwardedFor": {
          "type": "string",
          "enum": [
            "SecurityPolicy",
            "None"
          ]
        },
        "Profile": {
          "type": "object",
          "properties": {
            "AntiSpywareProfile": {
              "type": "string"
            },
            "AntiVirusProfile": {
              "type": "string"
            },
            "VulnerabilityProfile": {
              "type": "string"
            },
            "URLFilteringProfile": {
              "type": "string"
            },
            "FileBlockingProfile": {
              "type": "string"
            }
          }
        }
      }
    },
    "UpdateToken": {
      "type": "string",
      "description": "Optimistic lock token for concurrent modification detection."
    }
  }
}
