获取用户列表
Payload:
{
"jsonrpc": "2.0",
"method": "user.get",
"params": {
"output": ["alias"],
"selectMedias":["sendto"],
"selectUsrgrps":["name"]
},
"auth": "54ec7f0d103f635ada0a76147d8a93a5",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": [
{
"userid": "1",
"alias": "Admin",
"usrgrps": [
{
"usrgrpid": "7",
"name": "Zabbix administrators"
}
],
"medias": [
{
"sendto": "878880484@qq.com"
}
]
},
{
"userid": "2",
"alias": "guest",
"usrgrps": [
{
"usrgrpid": "8",
"name": "Guests"
}
],
"medias": []
},
{
"userid": "3",
"alias": "John",
"usrgrps": [
{
"usrgrpid": "14",
"name": "testusergroup"
}
],
"medias": [
{
"sendto": "648306475@qq.com"
}
]
}
],
"id": 1
}
获取用户组列表
TODO