Contact Template

ContactTemplate

class ContactTemplate(name, alias, email, pager, admin, id_unique, gui_access, activate)

This class represents a contact template

Parameters
  • name (str) – Name of the contact

  • alias (str) – Alias of the contact

  • email (str) – EMail of the contact

  • pager (str) – Pager of the contact

  • admin (bool) – Is the contact admin?

  • id_unique (int) – ID of the contact

  • gui_access (bool) – Has the contact access to the gui

  • activate (bool) – Is the template activated?

ContactTemplateAuthType

class ContactTemplateAuthType

This class represents the available authentication types which can be used by an user

LDAP = 'ldap'
LOCAL = 'local'

ContactTemplateParam

class ContactTemplateParam

This class represents the available parameter you could change / set in a contact template

ACCESS = 'access'
ADDRESS1 = 'address1'
ADDRESS2 = 'address2'
ADDRESS3 = 'address3'
ADDRESS4 = 'address4'
ADDRESS5 = 'address5'
ADDRESS6 = 'address6'
ADMIN = 'admin'
ALIAS = 'alias'
AUTHTYPE = 'authtype'
AUTOLOGIN_KEY = 'autologin_key'
COMMENT = 'comment'
EMAIL = 'email'
ENABLE_NOTIFICATIONS = 'enable_notifications'
HOSTNOTIFCMD = 'hostnotifcmd'
HOSTNOTIFOPT = 'hostnotifopt'
HOSTNOTIFPERIOD = 'hostnotifperiod'
LANGUAGE = 'language'
LDAP_DN = 'ldap_dn'
NAME = 'name'
PASSWORD = 'password'
SERVICENOTIFOPT = 'servicenotifopt'
SVCNOTIFCMD = 'svcnotifcmd'
SVCNOTIFPERIOD = 'svcnotifperiod'
TEMPLATE = 'template'
TIMEZONE = 'timezone'