object hostinterface.massadd(??????? ???????)
???? ?? ?????? ?????? ?? ????? ????? ???? ????? ?????? ??????.
???? ?? ????? ?? ?-Admin ?-Super Admin ???? ???????. ???? ???? ?????? ????? ????? ?????? ????? ??????. ??? ????? ??????? ????? ????.
(object)
??????? ??????? ?? ????? ????? ???????? ????? ??????? ???????.
????? ????? ?? ???????? ?????.
????? | ??? | ????? |
---|---|---|
?????? (????) |
object/array | ?????? ??? ?????. ?? ??????? ????? ????? ??????? hostid . |
?????? (????) |
object/array | ????? ???? ?????? ??????? ???????. |
(object)
?????? ??????? ????? ?? ?????? ?? ????? ????? ?????? ??? ??????? 'interfaceids'.
??? ???? ???? ??????.
?????????:
{
"jsonrpc": "2.0",
"method": "hostinterface.massadd",
"params": {
"??????": [
{
"hostid": "30050"
},
{
"hostid": "30052"
}
],
"??????": {
"dns": "",
"ip": "127.0.0.1",
"????": 0,
"port": "10050",
"??? 1,
"useip": 1
}
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"????": 1
}
????????:
CHostInterface::massAdd()? ???? ui/include/classes/api/services/CHostInterface.php.