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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...