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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...