<?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: REST API storage/collections/config return errors in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555709#M92032</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the API endpoint that you are using and how you are testing it?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 01:29:37 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-06-15T01:29:37Z</dc:date>
    <item>
      <title>REST API storage/collections/config return errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555597#M92010</link>
      <description>&lt;P&gt;I have a hard time getting examples in&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/usetherestapitomanagekv/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/usetherestapitomanagekv/&lt;/A&gt;&amp;nbsp;to work. &amp;nbsp;One of the most obvious error is 405 with POST to&amp;nbsp;storage/collections/config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HTTP/1.1 405 Method Not Allowed
Date: Sun, 13 Jun 2021 16:27:53 GMT
Allow: GET,HEAD,OPTIONS
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Content-Length: 243
Connection: Keep-Alive
X-Frame-Options: SAMEORIGIN
Server: Splunkd&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation clearly says&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;STRONG&gt;storage/collections/config&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;GET: Get a list of collections in a specific app.&lt;/LI&gt;&lt;LI&gt;POST: Create a new collection in a specific app.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;GET method, meanwhile, always gets 404 page not found. Is there some permission to be set before API can enable POST and allow GET?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 16:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555597#M92010</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-06-13T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: REST API storage/collections/config return errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555709#M92032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the API endpoint that you are using and how you are testing it?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 01:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555709#M92032</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-15T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST API storage/collections/config return errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555739#M92042</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;I use curl. &amp;nbsp;To test POST method, I use something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H 'Authorization Bearer &amp;lt;token&amp;gt;' \
    -d name=kvtest \    https://localhost:8089/servicesNS/myuser/search/storage/collections/config&lt;/LI-CODE&gt;&lt;P&gt;nearly verbatim as in the document. &amp;nbsp;To test GET method, &amp;nbsp;just drop the -d option.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-storage-collections-config-return-errors/m-p/555739#M92042</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-06-15T07:54:30Z</dc:date>
    </item>
  </channel>
</rss>

