<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create a new rest command that creates new stanzas from setmup.xml? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-rest-command-that-creates-new-stanzas-from/m-p/354666#M64872</link>
    <description>&lt;P&gt;I would like to create a new rest command that creates new stanzas from setmup.xml.&lt;BR /&gt;
I can add/edit entries to an existing stanza.&lt;/P&gt;

&lt;P&gt;restmap.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Admin: catches the url
[admin:owm_config]
match = /owm
members = config, city

# Admin_External: where to send members
[admin_external:config]
handlertype = python
handlerfile = OWM_config_handler.py
handleractions = list, edit

[admin_external:city]
handlertype = python
handlerfile = OWM_city_handler.py
handleractions = create, list, edit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In OWM_city_handler.py&lt;BR /&gt;
I have the setup(), handleCreate(), handleList(), handleEdit()&lt;BR /&gt;
When I call this with _new, self.requestedAction reports 64/?, 1/create, 4/list&lt;BR /&gt;
I do not know what to do with self.requestedAction=64 and I cannot get any of the handlers called.&lt;BR /&gt;
When I call with anything besides _new, it all works as expected.&lt;/P&gt;

&lt;P&gt;Any Ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:11:23 GMT</pubDate>
    <dc:creator>fk319</dc:creator>
    <dc:date>2020-09-29T19:11:23Z</dc:date>
    <item>
      <title>How to create a new rest command that creates new stanzas from setmup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-rest-command-that-creates-new-stanzas-from/m-p/354666#M64872</link>
      <description>&lt;P&gt;I would like to create a new rest command that creates new stanzas from setmup.xml.&lt;BR /&gt;
I can add/edit entries to an existing stanza.&lt;/P&gt;

&lt;P&gt;restmap.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Admin: catches the url
[admin:owm_config]
match = /owm
members = config, city

# Admin_External: where to send members
[admin_external:config]
handlertype = python
handlerfile = OWM_config_handler.py
handleractions = list, edit

[admin_external:city]
handlertype = python
handlerfile = OWM_city_handler.py
handleractions = create, list, edit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In OWM_city_handler.py&lt;BR /&gt;
I have the setup(), handleCreate(), handleList(), handleEdit()&lt;BR /&gt;
When I call this with _new, self.requestedAction reports 64/?, 1/create, 4/list&lt;BR /&gt;
I do not know what to do with self.requestedAction=64 and I cannot get any of the handlers called.&lt;BR /&gt;
When I call with anything besides _new, it all works as expected.&lt;/P&gt;

&lt;P&gt;Any Ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-rest-command-that-creates-new-stanzas-from/m-p/354666#M64872</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2020-09-29T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new rest command that creates new stanzas from setmup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-rest-command-that-creates-new-stanzas-from/m-p/354667#M64873</link>
      <description>&lt;P&gt;The problem was in my default/setup.xml  I need a field called name.&lt;BR /&gt;
It seems the name field is special.  Once I passed it to the endpoint, things started happening again.  Thanks for all those that helped.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 02:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-rest-command-that-creates-new-stanzas-from/m-p/354667#M64873</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2018-04-27T02:46:16Z</dc:date>
    </item>
  </channel>
</rss>

