object host.massupdate(??????? ???????)
???? ?? ?????? ?????? ?? ????? ?? ????? ????????? ?????? ????? ???????? ????? ??????.
???? ?? ????? ?? ?-Admin ?-Super Admin ???? ???????. ???? ???? ?????? ????? ????? ?????? ????? ??????. ??? ????? ??????? ????? ????.
(object)
??????? ??????? ?? ?????? ?? ??????? ??? ????? ??? ???????? ??? ?????.
????? ???????? ????? ??????????, ????? ???? ?? ???????? ?????.
????? | ??? | ????? |
---|---|---|
?????? (????) |
object/array | hosts ??????. ??????? ?????? ????? ???? ?-'hostid' ?????? ?????. |
groups | object/array | ???? ?????? ??? ?????? ?? ??????? ??????? ???????? ?????? ?????? ???????. ??????? ??????? ?????? ????? ??????? groupid ?????. |
interfaces | object/array | ???? ?????? ??? ?????? ?? ????? ????? ???????? ??????? ???????. |
inventory | object | ???? inventory ????????. ?? ???? ????? ??? ???? ???? ??????? ?????? inventory , ????? ????? ??? ?-inventory_mode . |
macros | object/array | ?????? ????? ????? ??? ?????? ?? ?????? ?????? ???????? ?? ?????? ??????? ???????. |
templates | object/array | Templates ??? ?????? ?? ??????? ???????? ??? ??????? ???????. ??????? ?????? ????? ??????? ??????? templateid . |
templates_clear | object/array | Templates ??? ???? ?? ?????? ?????? ???????? ???????. ??????? ?????? ?????? ?? ??????? 'templateid'. |
(object)
?????? ??????? ????? ?? ?????? ?? ??????? ????????? ??? ???? hostids
.
???? ????? ?? ??? ??????, ?????, ???? ?? ???? ???? ?-0.
?????????:
{
"jsonrpc": "2.0",
"method": "host.massupdate",
"params": {
"??????": [
{
"hostid": "69665"
},
{
"hostid": "69666"
}
],
"?????": 0
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"????": 1
}
????????:
CHost::massUpdate()? ???? ui/include/classes/api/services/CHost.php.