The method allows to retrieve media types according to the given parameters. 此方法用于检索给定参数和符合条件的媒介类型

    Parameters 参数

    (object) Parameters defining the desired output. (object) 定义所需输出的参数。

    The method supports the following parameters. 此方法支持一下参数。

    • an array of objects;

    • the count of retrieved objects, if the countOutput parameter has been used.

    • 一个对象数组;

    Examples 示例如下

    Retrieving media types 检索媒介类型

    Retrieve all configured media types. 检索所有配置的媒介类型

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "mediatypeid": "1",
    6. "type": "0",
    7. "description": "Email",
    8. "smtp_server": "mail.company.com",
    9. "smtp_helo": "company.com",
    10. "smtp_email": "[email protected]",
    11. "username": "",
    12. "passwd": "",
    13. "status": "0",
    14. "maxsessions": "1",
    15. "maxattempts": "7",
    16. "attempt_interval": "10s"
    17. },
    18. {
    19. "mediatypeid": "2",
    20. "type": "3",
    21. "description": "Jabber",
    22. "smtp_server": "",
    23. "smtp_helo": "",
    24. "smtp_email": "",
    25. "exec_path": "",
    26. "gsm_modem": "",
    27. "username": "[email protected]",
    28. "passwd": "zabbix",
    29. "status": "0",
    30. "maxsessions": "1",
    31. "attempt_interval": "10s"
    32. },
    33. {
    34. "mediatypeid": "3",
    35. "type": "2",
    36. "description": "SMS",
    37. "smtp_server": "",
    38. "smtp_helo": "",
    39. "smtp_email": "",
    40. "exec_path": "",
    41. "gsm_modem": "/dev/ttyS0",
    42. "username": "",
    43. "passwd": "",
    44. "status": "0",
    45. "maxsessions": "1",
    46. "maxattempts": "7",
    47. "attempt_interval": "10s"
    48. }
    49. ],
    50. "id": 1

    Source