{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SyslogDestinationRequest",
  "description": "SyslogDestinationRequest schema from Palo Alto Networks Strata Logging Service API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/strata-logging-service-api-syslog-destination-request-schema.json",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for this syslog destination."
    },
    "server": {
      "type": "string",
      "description": "Syslog server hostname or IP address."
    },
    "port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "Syslog server port number."
    },
    "protocol": {
      "type": "string",
      "enum": [
        "UDP",
        "TCP",
        "SSL"
      ],
      "description": "Transport protocol."
    },
    "format": {
      "type": "string",
      "enum": [
        "IETF",
        "BSD",
        "CSV"
      ],
      "default": "IETF"
    },
    "facility": {
      "type": "string",
      "default": "LOG_USER"
    },
    "enabled": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "name",
    "server",
    "port",
    "protocol"
  ]
}
