Getting Data In

|rest /servicesNS/-/-/search/distributed/peers Get all indexers - capabilities - user role

net1993
Path Finder

Hi

I am in a bit of urgent issue and cannot figure out solution.
I use that rest call to get list of all indexers:
|rest /servicesNS/-/-/search/distributed/peers
From admin is working ok but from User role getting error:

Failed to fetch REST endpoint uri=https://127.0.0.1:8089/servicesNS/-/-/search/distributed/peers?count=0 from server https://127.0.0.1:8089. Check that the URI path provided exists in the REST API

I have tried added all rest capabilities for my user role

Tags (1)
0 Karma

lakshman239
Influencer

Can you try creating a user or power user role and assign the following capabilities to them and assign to a user to test? [ it may work just with list and in that case, you can remove edit]

edit_dist_peer
edit_indexer_cluster
edit_indexer_discovery
indexes_edit
list_indexer_cluster
list_indexer_discovery
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...