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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...