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!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...