Folks,
Seems the multi-interface changes to host definitions breaks the simple ability to change a hosts IP via a simple JSON such as:
I see reference elsewhere to needing to send an array of "interfaces" data but
can someone outline what the minimalist requirement in JSON for this would be. I sure hope I don't have to query the host for hostiD, then query the host ID for interfacess list etc etc etc. Is there some default in cases where you know it's always going to be the primary (and only) interface.
Thanks
~
Seems the multi-interface changes to host definitions breaks the simple ability to change a hosts IP via a simple JSON such as:
Code:
{
"jsonrpc":"2.0",
"method":"host.update",
"params":{
"hostid": "10095",
"ip":"2.2.2.2"
},
"auth":"5ba6879c5744e79306665bc5656044a3",
"id":1
}
can someone outline what the minimalist requirement in JSON for this would be. I sure hope I don't have to query the host for hostiD, then query the host ID for interfacess list etc etc etc. Is there some default in cases where you know it's always going to be the primary (and only) interface.
Thanks
~
Comment