When i use host.create without binding host to template, it work fine. When i try to create host with binding it to template, i see permission error =(
For example:
zapi.host.create({
"host": host,
"interfaces":
[
],
"groups": [
],
"templates": [
],
"inventory":
})
error:
(u'Error -32500: Application error., You do not have permission to perform this operation. while sending {"params": {"templates": [
], "host": "10.229.103.16", "interfaces": [
{"ip": "10.229.103.16", "useip": 1, "dns": "", "main": 1, "type": 1, "port": 10050}], "groups": [
{"groupid": "36"}], "inventory": {"macaddress_a": "14:d6:4d:6a:b9:40"}}, "jsonrpc": "2.0", "method": "host.create", "auth": "ef2c0e93ce35510643d1666e83bf44c2", "id": 13}', -32500)
If i commented string "templates": [
{ "templateid": '10073' }], it's work fine. Wtf?