<?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 do I create an index using REST API? in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/674743#M2743</link>
    <description>&lt;P&gt;You probably already figured it out by now but you &lt;STRIKE&gt;will&lt;/STRIKE&gt;&amp;nbsp;can use the ACS CLI or Terraform splunk/scp provider to manage indexes in Splunk Cloud.&lt;/P&gt;&lt;P&gt;Splunk ACS API REST reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Config/ACSREF#Manage_indexes" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Config/ACSREF#Manage_indexes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creating a new index in Splunk Cloud example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST 'https://admin.splunk.com/{stack}/adminconfig/v2/indexes'
--header 'Authorization: Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0Iiwi…' \
--header 'Content-Type: application/json' \
--data-raw '{
   "name": "testindex"
}'&lt;/LI-CODE&gt;&lt;P&gt;ACS CLI:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Splunk Splunk Cloud Platform Terraform provider:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/terraform-provider-scp" target="_blank" rel="noopener"&gt;https://github.com/splunk/terraform-provider-scp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 15:41:08 GMT</pubDate>
    <dc:creator>m_pham</dc:creator>
    <dc:date>2024-01-19T15:41:08Z</dc:date>
    <item>
      <title>How do I create an index using REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/608702#M1698</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;According to the documentation for Splunk Cloud Classic Experience&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your Splunk Cloud Platform deployment is on Classic Experience, you can manage your indexes programmatically using the Splunk REST API&amp;nbsp;&lt;/SPAN&gt;cluster_blaster_indexes/sh_indexes_manager&lt;SPAN&gt;&amp;nbsp;endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Admin/ManageIndexesClassic#:~:text=If%20your%20Splunk%20Cloud%20Platform,click%20Support%20%26%20Services%20%3E%20About." target="_blank" rel="noopener"&gt;Manage indexes on Splunk Cloud Platform Classic Experience - Splunk Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I used the command:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;curl -k -H "Authorization: Bearer MyToken" https://MySplunk.splunkcloud.com:8089/services/cluster_blaster_indexes/sh_indexes_manager?output_mode=json&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I get this respond:&lt;BR /&gt;&amp;lt;!doctype html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;&amp;lt;meta http-equiv="refresh" content="1;url=&lt;A href="https://XX.splunkcloud.com/en-US/servicesNS/nobody/search/data/indexes" target="_blank" rel="noopener"&gt;https://XX.splunkcloud.com/en-US/servicesNS/nobody/search/data/indexes&lt;/A&gt;"&amp;gt;&amp;lt;title&amp;gt;303 See Other&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;See Other&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;The resource has moved temporarily &amp;lt;a href="&lt;A href="https://XX.splunkcloud.com/en-US/servicesNS/nobody/search/data/indexes" target="_blank" rel="noopener"&gt;https://XX.splunkcloud.com/en-US/servicesNS/nobody/search/data/indexes&lt;/A&gt;"&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This brings me to a 404 page&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I want to create an Index using REST API on Splunk Cloud (Classic Experience)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 14:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/608702#M1698</guid>
      <dc:creator>Sanz</dc:creator>
      <dc:date>2022-08-09T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an index using REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/674743#M2743</link>
      <description>&lt;P&gt;You probably already figured it out by now but you &lt;STRIKE&gt;will&lt;/STRIKE&gt;&amp;nbsp;can use the ACS CLI or Terraform splunk/scp provider to manage indexes in Splunk Cloud.&lt;/P&gt;&lt;P&gt;Splunk ACS API REST reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Config/ACSREF#Manage_indexes" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Config/ACSREF#Manage_indexes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creating a new index in Splunk Cloud example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST 'https://admin.splunk.com/{stack}/adminconfig/v2/indexes'
--header 'Authorization: Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0Iiwi…' \
--header 'Content-Type: application/json' \
--data-raw '{
   "name": "testindex"
}'&lt;/LI-CODE&gt;&lt;P&gt;ACS CLI:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Splunk Splunk Cloud Platform Terraform provider:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/splunk/terraform-provider-scp" target="_blank" rel="noopener"&gt;https://github.com/splunk/terraform-provider-scp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/674743#M2743</guid>
      <dc:creator>m_pham</dc:creator>
      <dc:date>2024-01-19T15:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an index using REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/674781#M2746</link>
      <description>&lt;P&gt;Are you certain you had the :8089 as part of your curl url? AND you used the correct url?&lt;BR /&gt;&lt;BR /&gt;The redirection response you have provided is identical to the one that Splunk Web (i.e. port 443 OR no port specified with HTTPS) would give in response to a request for /servicesNS/nobody/search/data/indexes (Which would be the enterprise API url instead of the cluster blaster one you state in your post.)&lt;BR /&gt;&lt;BR /&gt;Deliberately omitting the :8089 from the cluster_blaster_indexes request against my classic stack I get the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ curl https://redacted.splunkcloud.com/services/cluster_blaster_indexes/sh_indexes_manager?output_mode=json
&amp;lt;!doctype html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;&amp;lt;meta http-equiv="refresh" content="1;url=https://redacted.splunkcloud.com/en-US/services/cluster_blaster_indexes/sh_indexes_manager?output_mode=json"&amp;gt;&amp;lt;title&amp;gt;303 See Other&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;See Other&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;The resource has moved temporarily &amp;lt;a href="https://redacted.splunkcloud.com/en-US/services/cluster_blaster_indexes/sh_indexes_manager?output_mode=json"&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 04:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-do-I-create-an-index-using-REST-API/m-p/674781#M2746</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2024-01-19T04:23:33Z</dc:date>
    </item>
  </channel>
</rss>

