删除用户
获取用户列表
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
}
删除用户
Payload:
{
"jsonrpc": "2.0",
"method": "user.delete",
"params": [
"3"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": {
"userids": [
"3"
]
},
"id": 1
}
通过列表中增加id
执行批量删除
删除用户组
TODO