Getting Data In

Is there a REST endpoint that allows replacing a static resource?

vbumgarner
Contributor

Is there an endpoint that allows replacing a static resource? I've written some scripts to upload dashboards through:

SERVER:8089/servicesNS/%s/%s/data/ui/views/%s

but I don't see an equivalent for the files that land in appserver/static, javascript, and css in particular.

Am I missing something?

dwaddle
SplunkTrust
SplunkTrust

If you go down the route @jkat54 is talking about with your trusty rusty chrome HTTP request debugger, it looks like it just does a POST of form data directly to the 'app' itself, in my case http://localhost:8000/en-US/manager/launcher/apps/local/search -- which is really not a REST endpoint, but likely a splunkweb controller of some kind.

You can't just smash it easily with curl because it doesn't seem to understand HTTP basic auth. I estimate you'd need to hit the auth form and submit to get back a cookie and then hit the form up.

0 Karma

jkat54
SplunkTrust
SplunkTrust

There got to be one somewhere because that's exactly where assets go when you upload them through the app manager...

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...