<?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 ITSI REST API delete : Can't manage to delete deep dives in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497308#M1980</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to create and delete some deep dives view via the API.&lt;/P&gt;

&lt;P&gt;While creating them is mostly done correctly (although they do not appear in the web GUI), I have issues deletting them. &lt;/P&gt;

&lt;P&gt;Following are the cURL commands done to try to delete:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X GET &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;

Reponse:
[{"object_type": "deep_dive", "_key": "26acc2cf-15d4-11ea-812f-28924a399516"}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Deletion command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X DELETE &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No response&lt;/P&gt;

&lt;P&gt;When I ask again for the same deepdice, I get the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X GET &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;

Reponse:
[{"object_type": "deep_dive", "_key": "26acc2cf-15d4-11ea-812f-28924a399516"}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would have thought that this last command would have given me a "element not found" or an empty list, but this is not the case.&lt;BR /&gt;
The same thing happens even when using no filter, to delete all deep dives.&lt;/P&gt;

&lt;P&gt;Am I missing something? Am I doing something wrong? Or is it a bug?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 08:33:11 GMT</pubDate>
    <dc:creator>jwillaime</dc:creator>
    <dc:date>2019-12-05T08:33:11Z</dc:date>
    <item>
      <title>ITSI REST API delete : Can't manage to delete deep dives</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497308#M1980</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to create and delete some deep dives view via the API.&lt;/P&gt;

&lt;P&gt;While creating them is mostly done correctly (although they do not appear in the web GUI), I have issues deletting them. &lt;/P&gt;

&lt;P&gt;Following are the cURL commands done to try to delete:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X GET &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;

Reponse:
[{"object_type": "deep_dive", "_key": "26acc2cf-15d4-11ea-812f-28924a399516"}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Deletion command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X DELETE &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No response&lt;/P&gt;

&lt;P&gt;When I ask again for the same deepdice, I get the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass  -X GET &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{&amp;quot;title&amp;quot;:&amp;quot;Test+Email2019-12-03+14:52:30.978203&amp;quot;\}'\&amp;amp;fields='_key'" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/deep_dive?filter='\{"title":"Test+Email2019-12-03+14:52:30.978203"\}'\&amp;amp;fields='_key'&lt;/A&gt;;

Reponse:
[{"object_type": "deep_dive", "_key": "26acc2cf-15d4-11ea-812f-28924a399516"}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would have thought that this last command would have given me a "element not found" or an empty list, but this is not the case.&lt;BR /&gt;
The same thing happens even when using no filter, to delete all deep dives.&lt;/P&gt;

&lt;P&gt;Am I missing something? Am I doing something wrong? Or is it a bug?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 08:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497308#M1980</guid>
      <dc:creator>jwillaime</dc:creator>
      <dc:date>2019-12-05T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI REST API delete : Can't manage to delete deep dives</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497309#M1981</link>
      <description>&lt;P&gt;Try deleting the deep dive using the deep dive key in the URL. For example, “itoa_interface/deep_dive/DEEP_DIVE_KEY” instead of what you're currently doing, which is a query param.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497309#M1981</guid>
      <dc:creator>esnyder_splunk</dc:creator>
      <dc:date>2020-09-30T03:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI REST API delete : Can't manage to delete deep dives</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497310#M1982</link>
      <description>&lt;P&gt;Thanks for the help! That method works, but I still wonder if the previous method isn't bugged or something.&lt;/P&gt;

&lt;P&gt;If you have a look at the documentation, &lt;BR /&gt;
(&lt;A href="https://docs.splunk.com/Documentation/ITSI/4.4.0/RESTAPI/ITSIRESTAPIreference#ITOA_Interface"&gt;https://docs.splunk.com/Documentation/ITSI/4.4.0/RESTAPI/ITSIRESTAPIreference#ITOA_Interface&lt;/A&gt;)&lt;BR /&gt;
The example they give is the following:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;curl -k -u admin:password &lt;A href="https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/entity?fields='title''&amp;amp;'filter='%5C%7B%22title%22:%22bar%22%5C%7D"&gt;https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/entity?fields='title''&amp;amp;'filter='\{"title":"bar"\}&lt;/A&gt;' -X DELETE &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Which is very similar to what I was trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 07:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-REST-API-delete-Can-t-manage-to-delete-deep-dives/m-p/497310#M1982</guid>
      <dc:creator>jwillaime</dc:creator>
      <dc:date>2019-12-10T07:35:45Z</dc:date>
    </item>
  </channel>
</rss>

