I am trying to get all the events listed for a particular time period using zabbix API through postman.
I am using username/password for basic authentication along with URL https://zabbix.hp8.us/zabbix/api_jsonrpc.php. Below JSON is my request body. One thing I am not getting is the auth: <> and id: <> in the below JSON, how can I generate the auth:<> value? . If I omit those values, my POST call will return me a [] array. What am i doing wrong here ?
{
"jsonrpc": "2.0",
"method": "event.get",
"params": {
"output": "extend",
"time_from": "1442723590",
"time_till": "1442809990",
"sortfield": ["clock", "eventid"],
"sortorder": "desc"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
I am using username/password for basic authentication along with URL https://zabbix.hp8.us/zabbix/api_jsonrpc.php. Below JSON is my request body. One thing I am not getting is the auth: <> and id: <> in the below JSON, how can I generate the auth:<> value? . If I omit those values, my POST call will return me a [] array. What am i doing wrong here ?
{
"jsonrpc": "2.0",
"method": "event.get",
"params": {
"output": "extend",
"time_from": "1442723590",
"time_till": "1442809990",
"sortfield": ["clock", "eventid"],
"sortorder": "desc"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Comment