{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_radius_server",
  "type": "object",
  "properties": {
    "unset": {
      "description": "Properties to UNSET (RouterOS `!prop`), so they no longer apply — e.g. ['dst-address'] removes the destination-address match. snake_case or kebab-case. Not for setting a value.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_-]*$"
      }
    },
    "radius_id": {
      "type": "string",
      "description": "RADIUS entry internal .id, e.g. '*1'"
    },
    "address": {
      "type": "string"
    },
    "secret": {
      "type": "string"
    },
    "service": {
      "type": "string"
    },
    "authentication_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "accounting_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "timeout": {
      "type": "string"
    },
    "src_address": {
      "type": "string"
    },
    "realm": {
      "type": "string"
    },
    "called_id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "protocol": {
      "description": "Transport protocol used to reach the server (default udp)",
      "type": "string",
      "enum": ["udp", "radsec"]
    },
    "certificate": {
      "description": "Certificate name to present when protocol is radsec",
      "type": "string"
    },
    "accounting_backup": {
      "description": "Mark this entry as a backup accounting server",
      "type": "boolean"
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    }
  },
  "required": ["radius_id"],
  "additionalProperties": false
}
