This is basically a follow up for the UI feature proposed and implemented in
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.