Can someone help me with query that gives the macro dependency(ex Dashboard, reports etc ).When I fire that query in search window, I need information like in what all dashboard, reports etc that macro is used.
Thanks in advance...
There is no one query to do that. You'll have to search all saved searches, dashboards, and eventtypes (each is a different REST call) for instances of the macro.
| rest /servicesNS/-/-/saved/searches | search search="*macroName*"
| rest /servicesNS/-/-/ui/views | search eai:data="*macroName*"
| rest /servicesNS/-/-/saved/eventtypes| search search="*macroName*"