{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LogForwardingSettings",
  "description": "LogForwardingSettings schema from Palo Alto Networks SaaS Security API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/saas-security-api-log-forwarding-settings-schema.json",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Whether log forwarding is globally enabled."
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "syslog",
              "https",
              "s3",
              "splunk"
            ],
            "description": "Forwarding destination type."
          },
          "name": {
            "type": "string",
            "description": "Destination name."
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether this destination is active."
          },
          "log_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Log types forwarded to this destination."
          }
        }
      }
    }
  }
}
