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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...