-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.19rc1, 4.4.7rc1, 5.0.0alpha3
-
Sprint 62 (Mar 2020)
-
0.125
Problem description: when template.massupdate API is used to replace the list of existing macros with new ones, existing macros are removed from templates, but the new macros are not added.
Steps to reproduce:
- Create a couple of templates and add user macros to each of them
- Attempt to replace all user macros with new ones using template.massupdate API like below:
{ "jsonrpc": "2.0", "method": "template.massupdate", "params": { "templates": [ {"templateid": "99063"}, {"templateid": "99014"} ], "macros": [ {"macro": "{$TEST7}", "value": "MACROTEST7"}, {"macro": "{$TEST8}", "value": "BBBBBBBB"}, {"macro": "{$TEST9}"} ] }, "auth": "7342ce9c11a529f8fc9bdd2447ba194b", "id": 1 }
Result: the old macros were removed, but the new ones were not added to the templates.
Expected: new list of macros from the API should replace exiting macros for the selected templates.
- caused by
-
ZBXNEXT-617 Mass Update of Macros on Hosts
- Closed