Splunk Enterprise

Splunk API calls for dashboard definition

sansmish
Engager

I am trying to access my dashboard definition as an xml file for which I'm using Splunk rest apis but I'm always getting error:404 object not found /action forbidden 

curl -ku "<username>:<password>" https://<host>/servicesNS/<adminof app>/<appname>/data/ui/views/<dashboardname>

even if I generate session key for attaching in header field of calls ,it's throwing the same error.

What could be the possible reasons?

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sansmish 

May be port issue.It should be management port.

 

curl -ku "<username>:<password>" https://<host>:8089/servicesNS/<adminof app>/<appname>/data/ui/views/<dashboardname>

 

my local curl.

curl -ku "admin:admin123" https://localhost:8089/servicesNS/admin/search/data/ui/views/my_dashboard

 

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...