<?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 Re: Programatically create  Rest API Modular Data Inputs in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74992#M4725</link>
    <description>&lt;P&gt;The "beta app framework" is now part of Splunk 6 and known as the "web framework" , &lt;A href="http://dev.splunk.com/view/web-framework/SP-CAAAER6"&gt;http://dev.splunk.com/view/web-framework/SP-CAAAER6&lt;/A&gt; , I would recommend using this. Although it is certainly possibly to achieve what you want with the old framework , it requires a very specific skillset , you'll find using the new web framework a lot simpler.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2013 10:03:32 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2013-10-16T10:03:32Z</dc:date>
    <item>
      <title>Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74987#M4720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;After experimenting a little with the REST API Modular Input and its capabilities there are some question that arose in my mind :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Is it possible using the Splunk App Framework to programatically create a REST Data input , parameterize its Endpoint URL/HTTP Method /Request Payload /HTTP Header Properties /etc ?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Consequently is it possible to delete/edit a previous created Rest Data Input ?&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This would be usefull for me since the Request Payload parameter of the HTTP POST polls needs to be parameterized for each poll and doing it from the UI would be extremely tedious.&lt;/P&gt;

&lt;P&gt;In case this is possible , please point me to the resources/docs that provide insight on how this can be achieved.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74987#M4720</guid>
      <dc:creator>niordache</dc:creator>
      <dc:date>2013-09-27T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74988#M4721</link>
      <description>&lt;P&gt;You most definitely can.&lt;/P&gt;

&lt;P&gt;Here is some sample code using the Splunk SDK for Python to create , update and delete a REST API Modular Input :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from splunklib.client import connect

def main():

    args = {'host':'localhost','port':8089,'username':'admin',"password":'somepass'}
    service = connect(**args)   

    #create REST Modular Input
    item = service.inputs.create('myrestinput','rest',endpoint='http://someurl/someapi/json',auth_type='none',url_args='arg1=val1,arg2=val2')

    #update REST Modular Input
    item.update(endpoint='http://someurl/someapi/xml')

    #delete REST Modular Input
    service.inputs.delete('myrestinput','rest')


if __name__ == '__main__':
    main();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74988#M4721</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-09-27T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74989#M4722</link>
      <description>&lt;P&gt;Thanks a bunch for the input !&lt;/P&gt;

&lt;P&gt;How about doing it from a app built using only Splunk App Framework ? Is it still achievable ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74989#M4722</guid>
      <dc:creator>niordache</dc:creator>
      <dc:date>2013-09-27T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74990#M4723</link>
      <description>&lt;P&gt;Yes. The App Framework (&lt;A href="http://dev.splunk.com/view/app-framework/SP-CAAAEMA"&gt;http://dev.splunk.com/view/app-framework/SP-CAAAEMA&lt;/A&gt;) contains the Javascript and Python SDK's.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74990#M4723</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-09-27T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74991#M4724</link>
      <description>&lt;P&gt;Would it also be possible to make such changes using the "old framework" : &lt;A href="http://dev.splunk.com/view/app-framework/SP-CAAADVF"&gt;http://dev.splunk.com/view/app-framework/SP-CAAADVF&lt;/A&gt; as opposed to using the beta app framework  ?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2013 21:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74991#M4724</guid>
      <dc:creator>niordache</dc:creator>
      <dc:date>2013-09-29T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create  Rest API Modular Data Inputs</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74992#M4725</link>
      <description>&lt;P&gt;The "beta app framework" is now part of Splunk 6 and known as the "web framework" , &lt;A href="http://dev.splunk.com/view/web-framework/SP-CAAAER6"&gt;http://dev.splunk.com/view/web-framework/SP-CAAAER6&lt;/A&gt; , I would recommend using this. Although it is certainly possibly to achieve what you want with the old framework , it requires a very specific skillset , you'll find using the new web framework a lot simpler.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 10:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Programatically-create-Rest-API-Modular-Data-Inputs/m-p/74992#M4725</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-10-16T10:03:32Z</dc:date>
    </item>
  </channel>
</rss>

