models.syslog_server module¶
-
class
models.syslog_server.
SyslogServer
(address=None, port=None, protocol=None, is_cluster_auditing_enabled=None, is_data_protection_enabled=None, is_filer_auditing_enabled=None, is_ssh_log_enabled=None, name=None)[source]¶ Bases:
object
Implementation of the ‘SyslogServer’ model.
Specifies the syslog servers configuration to upload Cluster audit logs and filer audit logs.
- Attributes:
- address (string): Specifies the IP address or hostname of the syslog
server.
- is_cluster_auditing_enabled (bool): Specifies if Cluster audit logs
should be sent to this syslog server. If ‘true’, Cluster audit logs are sent to the syslog server. (default) If ‘false’, Cluster audit logs are not sent to the syslog server. Either cluster audit logs or filer audit logs should be enabled.
- is_data_protection_enabled (bool): Specifies if dataprotection logs
should be sent to syslog server If ‘true’, dataprotection logs are sent to the server. If ‘false’, dataprotection logs are not sent to the server.(default)
- is_filer_auditing_enabled (bool): Specifies if filer audit logs should
be sent to this syslog server. If ‘true’, filer audit logs are sent to the syslog server. (default) If ‘false’, filer audit logs are not sent to the syslog server. Either cluster audit logs or filer audit logs should be enabled.
- is_ssh_log_enabled (bool): Specifies if ssh login logs should be sent
to syslog server If ‘true’, ssh login logs are sent to the server. If ‘false’, ssh login logs are not sent to the server.(default)
- name (string): Specifies a unique name for the syslog server on the
Cluster.
port (int): Specifies the port where the syslog server listens. protocol (ProtocolSyslogServerEnum): Specifies the protocol used to
send the logs. Specifies the protocol used to communicate to a server. e.g., kUDP, kTCP. ‘kUDP’ indicates UDP protocol. ‘kTCP’ indicates TCP protocol.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.