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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...