Deployment Architecture

Change eai:data of nav bar default.xml through REST / Setup Page

herbatology
New Member

Through

/servicesNS/nobody/MYAPP/admin/nav/default

I can access the navigation bar content of my app. I now want to be able to change this via a setup page. Displaying eai:data works fine, however when trying to save on the setup page, I get an error saying

"Cannot find item for POST arg_name="/admin/nav/default/eai%3Adata""

My setup.xml:

<setup>
  <block title="Nav" endpoint="admin/nav" entity="default">
    <input field="eai:data">
    <label>$name$</label>
    <type>text</type>
    </input>
  </block>
</setup>

alt text

Labels (1)
0 Karma

jstratton
Engager

Assuming I understood your question correctly, I was able to update the default.xml for the 'search' app using:

cat test.xml
<nav search_view="search" color="#5CC05A">
  <view name="search" default="true" />
  <view name="analytics_workspace" />
  <view name="datasets" />
  <view name="reports" />
  <view name="alerts" />
  <view name="dashboards" />
</nav>

curl -ks -u admin:"${pw}" https://localhost:8089/servicesNS/nobody/search/data/ui/nav/default --data-urlencode eai:data@test.xml
0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.2.2403?

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

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...