<?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: Modify event types via API (curl) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Modify-event-types-via-API-curl/m-p/57675#M11279</link>
    <description>&lt;P&gt;Never mind... I'm a moron.&lt;/P&gt;

&lt;P&gt;You do slap the /acl handler.  I had a problem with one of my variable.&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2012 19:11:27 GMT</pubDate>
    <dc:creator>nocostk</dc:creator>
    <dc:date>2012-05-22T19:11:27Z</dc:date>
    <item>
      <title>Modify event types via API (curl)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Modify-event-types-via-API-curl/m-p/57674#M11278</link>
      <description>&lt;P&gt;I'm trying to script something out to create an event type and then set the permissions on it.  I've got the creation down just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -s -k -H "Authorization: Splunk &amp;lt;authstring&amp;gt;" &lt;A href="https://splunksearch:8089/servicesNS/nobody/search/saved/eventtypes" target="test_blank"&gt;https://splunksearch:8089/servicesNS/nobody/search/saved/eventtypes&lt;/A&gt; -d name=SA-1234 -d search='"host=web01*"' -d tags=alert-shop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I'm unable to set the permissions using the above URI.  Scouring through the documentation it seems I need to   slap the acl of the object via:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -s -k -H "Authorization: Splunk &amp;lt;authstring&amp;gt;" &lt;A href="https://splunksearch:8089/servicesNS/nobody/search/saved/eventtypes/SA-1234/acl" target="test_blank"&gt;https://splunksearch:8089/servicesNS/nobody/search/saved/eventtypes/SA-1234/acl&lt;/A&gt; -d perms.read=* -d perms.write=admin,power -d sharing=app"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, the API returns the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;msg type="ERROR"&amp;gt;In handler &amp;amp;apos;eventtypes&amp;amp;apos;: Argument &amp;amp;quot;perms.read&amp;amp;quot; is not supported by this handler.&amp;lt;/msg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I remove perms.read it will just complain about another (e.g. sharing=app).  How do I properly set the permissions via the API in Splunk 4.3.2?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 18:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Modify-event-types-via-API-curl/m-p/57674#M11278</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2012-05-22T18:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify event types via API (curl)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Modify-event-types-via-API-curl/m-p/57675#M11279</link>
      <description>&lt;P&gt;Never mind... I'm a moron.&lt;/P&gt;

&lt;P&gt;You do slap the /acl handler.  I had a problem with one of my variable.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 19:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Modify-event-types-via-API-curl/m-p/57675#M11279</guid>
      <dc:creator>nocostk</dc:creator>
      <dc:date>2012-05-22T19:11:27Z</dc:date>
    </item>
  </channel>
</rss>

