<?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: Is there a way to distribute cluster-bundle through REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154604#M31434</link>
    <description>&lt;P&gt;I'd say "probably", because the CLI parameter likely is just passed to the REST call.&lt;/P&gt;

&lt;P&gt;The endpoint still isn't documented on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTcluster"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTcluster&lt;/A&gt; - I've asked the docs team, we'll see.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 01:37:00 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2016-06-28T01:37:00Z</dc:date>
    <item>
      <title>Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154600#M31430</link>
      <description>&lt;P&gt;I know that for doing the distribution of &lt;EM&gt;cluster-bundle&lt;/EM&gt; there exist two documented ways: Using the WEB UI and also using the CLI, but my question is, &lt;STRONG&gt;is there any way to do using the REST API&lt;/STRONG&gt;?&lt;/P&gt;

&lt;P&gt;The reason of my need is because I'm developing an application that creates new indexes in the &lt;EM&gt;indexes.conf&lt;/EM&gt; file which is inside &lt;EM&gt;master-apps/_cluster/local&lt;/EM&gt; directory, and now the only thing that left is to do the deployment of those changes over the peer nodes.&lt;/P&gt;

&lt;P&gt;Please help... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154600#M31430</guid>
      <dc:creator>felipe_conde</dc:creator>
      <dc:date>2014-07-23T16:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154601#M31431</link>
      <description>&lt;P&gt;Yeah there is - anything that can be done through the UI can be done through the REST API.&lt;/P&gt;

&lt;P&gt;Sadly, this endpoint doesn't seem to be documented. I gather it's a POST to &lt;CODE&gt;/services/cluster/master/control/default/apply&lt;/CODE&gt; from looking at &lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/js/models/services/cluster/master/Control.js&lt;/CODE&gt; ... however, without documentation it's a bit of a gamble to rely on that.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 19:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154601#M31431</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-23T19:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154602#M31432</link>
      <description>&lt;P&gt;Thank you very much, this is exactly what I need.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 09:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154602#M31432</guid>
      <dc:creator>felipe_conde</dc:creator>
      <dc:date>2014-07-24T09:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154603#M31433</link>
      <description>&lt;P&gt;can we use --skip-validation if we use this rest point&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154603#M31433</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2016-06-23T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154604#M31434</link>
      <description>&lt;P&gt;I'd say "probably", because the CLI parameter likely is just passed to the REST call.&lt;/P&gt;

&lt;P&gt;The endpoint still isn't documented on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTcluster"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTcluster&lt;/A&gt; - I've asked the docs team, we'll see.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 01:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154604#M31434</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-06-28T01:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154605#M31435</link>
      <description>&lt;P&gt;Just checked with splunk support and Its not possible.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 10:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154605#M31435</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2016-06-28T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154606#M31436</link>
      <description>&lt;P&gt;Well, the parameter has to exist - how else would the CLI tell splunkd what to do?&lt;/P&gt;

&lt;P&gt;Based on quick trial-and-error, the parameter is likely called skip-validation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/cluster/master/control/control/apply" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/apply&lt;/A&gt; -d skip-validation=true -X POST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...no error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/cluster/master/control/control/apply" target="test_blank"&gt;https://localhost:8089/services/cluster/master/control/control/apply&lt;/A&gt; -d fake-parameter=true -X POST

&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="ERROR"&amp;gt;
 In handler 'clustermastercontrol': Argument "fake-parameter" is not supported by this handler.&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Switching true and false didn't change anything for me, but then there are no errors in my bundle...&lt;/P&gt;

&lt;P&gt;Side note: Splunk Support may be correct too, in that there's no documented and supported way right now...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 19:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154606#M31436</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-06-28T19:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154607#M31437</link>
      <description>&lt;P&gt;this is correct! (and the optional argument is indeed "skip-validation" = true/false, which corresponds to the CLI argument).&lt;/P&gt;

&lt;P&gt;the docs should be updated with this info relatively soon!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154607#M31437</guid>
      <dc:creator>dxu_splunk</dc:creator>
      <dc:date>2016-07-19T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to distribute cluster-bundle through REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154608#M31438</link>
      <description>&lt;P&gt;Hooray for educated guessing \o/&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-distribute-cluster-bundle-through-REST-API/m-p/154608#M31438</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-07-19T20:11:21Z</dc:date>
    </item>
  </channel>
</rss>

