[ZBXNEXT-4563] Ability to list inherited macros and values in host.get Created: 2018 May 23  Updated: 2022 Jun 25

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A)
Affects Version/s: 3.0.17
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Raymond Kuiper Assignee: Alexander Vladishev
Resolution: Unresolved Votes: 5
Labels: host.get, usermacros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-7818 Getting the Users Macros for a host Closed

 Description   

This is basically a follow up for the UI feature proposed and implemented in ZBXNEXT-210.

We can now easily identify which user macros and values are applied to a host via template inheritance in the UI.

When using the host.get API call we can use SelectMacros to retrieve macros that are defined on the host, however it is not possible to easily find which macros are applied via template inheritance. This would be very useful to determine if a macro needs to be set with a specific value or if the inherited value will suffice.

In the current situation we need to resolve linked templates and retrieve macros on each level, which is very costly.


Generated at Sat Apr 20 14:28:38 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.