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!

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

Introducing the 2024 SplunkTrust!

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