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 Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...