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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...