zabbix_mediatype
¶
Management of Zabbix mediatypes.
- codeauthor:
Raymond Kuiper <qix@the-wired.net>
- saltext.zabbix.states.zabbix_mediatype.__virtual__()[source]¶
Only make these states available if Zabbix module is available.
- saltext.zabbix.states.zabbix_mediatype.present(name, mediatype, **kwargs)[source]¶
Creates new mediatype. NOTE: This function accepts all standard mediatype properties: keyword argument names differ depending on your zabbix version, see: https://www.zabbix.com/documentation/3.0/manual/api/reference/host/object#host-inventory
- Parameters:
name – name of the mediatype
_connection_user – Optional - zabbix user (can also be set in opts or pillar, see module’s docstring)
_connection_password – Optional - zabbix password (can also be set in opts or pillar, see module’s docstring)
_connection_url – Optional - url of zabbix frontend (can also be set in opts, pillar, see module’s docstring)
make_new_mediatype: zabbix_mediatype.present: - name: 'Email' - mediatype: 0 - smtp_server: smtp.example.com - smtp_hello: zabbix.example.com - smtp_email: zabbix@example.com
- saltext.zabbix.states.zabbix_mediatype.absent(name, **kwargs)[source]¶
Ensures that the mediatype does not exist, eventually deletes the mediatype.
- Parameters:
name – name of the mediatype
_connection_user – Optional - zabbix user (can also be set in opts or pillar, see module’s docstring)
_connection_password – Optional - zabbix password (can also be set in opts or pillar, see module’s docstring)
_connection_url – Optional - url of zabbix frontend (can also be set in opts, pillar, see module’s docstring)
delete_mediatype: zabbix_mediatype.absent: - name: 'Email'