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:
{
"jsonrpc": "2.0",
"result": [
{
"mediatypeid": "1",
"type": "0",
"description": "Email",
"smtp_server": "mail.company.com",
"smtp_helo": "company.com",
"smtp_email": "[email protected]",
"username": "",
"passwd": "",
"status": "0",
"maxsessions": "1",
"maxattempts": "7",
"attempt_interval": "10s"
},
{
"mediatypeid": "2",
"type": "3",
"description": "Jabber",
"smtp_server": "",
"smtp_helo": "",
"smtp_email": "",
"exec_path": "",
"gsm_modem": "",
"username": "[email protected]",
"passwd": "zabbix",
"status": "0",
"maxsessions": "1",
"attempt_interval": "10s"
},
{
"mediatypeid": "3",
"type": "2",
"description": "SMS",
"smtp_server": "",
"smtp_helo": "",
"smtp_email": "",
"exec_path": "",
"gsm_modem": "/dev/ttyS0",
"username": "",
"passwd": "",
"status": "0",
"maxsessions": "1",
"maxattempts": "7",
"attempt_interval": "10s"
}
],
"id": 1