<?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: How to do a REST GET call output_mode=json with parameter count=0 to get a list of search peers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116557#M24323</link>
    <description>&lt;P&gt;Yes, the "" fixed the issue.  Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2015 17:24:40 GMT</pubDate>
    <dc:creator>benoitleroux</dc:creator>
    <dc:date>2015-03-27T17:24:40Z</dc:date>
    <item>
      <title>How to do a REST GET call output_mode=json with parameter count=0 to get a list of search peers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116555#M24321</link>
      <description>&lt;P&gt;I am using REST to get the list of search peers and cannot find a way to change the default of 30 results.&lt;/P&gt;

&lt;P&gt;It should be done by setting count=0 as a parameter, but is does not work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:password &lt;A href="https://domain:port/services/search/distributed/peers?output_mode=json&amp;amp;count=0" target="test_blank"&gt;https://domain:port/services/search/distributed/peers?output_mode=json&amp;amp;count=0&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:password &lt;A href="https://domain:port/services/search/distributed/peers?output_mode=json" target="test_blank"&gt;https://domain:port/services/search/distributed/peers?output_mode=json&lt;/A&gt; -d count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is interpreted as a POST call which requires a name="something"&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 21:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116555#M24321</guid>
      <dc:creator>benoitleroux</dc:creator>
      <dc:date>2015-03-26T21:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a REST GET call output_mode=json with parameter count=0 to get a list of search peers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116556#M24322</link>
      <description>&lt;P&gt;Are you using bash or a shell that's interpreting the ampersand as a special character? does: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  curl -k -u user:password "https://domain:port/services/search/distributed/peers?output_mode=json&amp;amp;count=0"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;work?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 05:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116556#M24322</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-03-27T05:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a REST GET call output_mode=json with parameter count=0 to get a list of search peers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116557#M24323</link>
      <description>&lt;P&gt;Yes, the "" fixed the issue.  Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 17:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-a-REST-GET-call-output-mode-json-with-parameter-count/m-p/116557#M24323</guid>
      <dc:creator>benoitleroux</dc:creator>
      <dc:date>2015-03-27T17:24:40Z</dc:date>
    </item>
  </channel>
</rss>

