{ "id":"/axapi/v3/ip/nat/template/logging/{name}", "type":"object", "node-type":"list", "title":"logging", "partition-visibility":"shared", "description":"NAT Logging Template", "properties":{ "name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"NAT logging template name", "optional":false }, "log":{ "type":"object", "properties":{ "port-mappings":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'creation': Log creation of NAT mappgins; 'disable': Disable Log creation and deletion of NAT mappings; ", "enum":[ "creation", "disable" ] } } }, "include-destination":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Include the destination IP and port in logs", "optional":true }, "include-rip-rport":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Include the IP and port of real server in logs", "optional":true }, "facility":{ "type":"string", "format":"enum", "default":"local0", "partition-visibility":"shared", "description":"'kernel': 0: Kernel; 'user': 1: User-level; 'mail': 2: Mail; 'daemon': 3: System daemons; 'security-authorization': 4: Security/authorization; 'syslog': 5: Syslog internal; 'line-printer': 6: Line printer; 'news': 7: Network news; 'uucp': 8: UUCP subsystem; 'cron': 9: Time-related; 'security-authorization-private': 10: Private security/authorization; 'ftp': 11: FTP; 'ntp': 12: NTP; 'audit': 13: Audit; 'alert': 14: Alert; 'clock': 15: Clock-related; 'local0': 16: Local use 0; 'local1': 17: Local use 1; 'local2': 18: Local use 2; 'local3': 19: Local use 3; 'local4': 20: Local use 4; 'local5': 21: Local use 5; 'local6': 22: Local use 6; 'local7': 23: Local use 7; ", "enum":[ "kernel", "user", "mail", "daemon", "security-authorization", "syslog", "line-printer", "news", "uucp", "cron", "security-authorization-private", "ftp", "ntp", "audit", "alert", "clock", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7" ], "optional":true }, "severity":{ "type":"object", "properties":{ "severity-string":{ "type":"string", "format":"enum", "default":"debug", "partition-visibility":"shared", "not":"severity-val", "description":"'emergency': 0: Emergency; 'alert': 1: Alert; 'critical': 2: Critical; 'error': 3: Error; 'warning': 4: Warning; 'notice': 5: Notice; 'informational': 6: Informational; 'debug': 7: Debug; ", "enum":[ "emergency", "alert", "critical", "error", "warning", "notice", "informational", "debug" ] }, "severity-val":{ "type":"number", "format":"number", "minimum":0, "maximum":7, "default":7, "partition-visibility":"shared", "not":"severity-string", "description":"Logging severity level" } } }, "service-group":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/service-group", "description":"Set NAT logging service-group", "optional":true }, "source-port":{ "type":"object", "properties":{ "source-port-num":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "default":514, "partition-visibility":"shared", "not":"any", "description":"Set source port for sending NAT syslogs (default: 514)" }, "any":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"source-port-num", "description":"Use any source port" } } }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true } }, "object-keys":[ "name" ], "required":[ "name" ] }