<?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 Bulk Resolution for Playbook Prompts? in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Bulk-Resolution-for-Playbook-Prompts/m-p/555507#M651</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there a way to simultaneously/bulk respond to multiple notifications generated by prompt actions, or an admin override to dismiss prompts and allow a playbook to move on to a next step?&lt;/P&gt;&lt;P&gt;Ran into a couple situations where many related events need a single prompt response.&amp;nbsp; We can bulk edit the events to close them, but the associated playbook will continue to wait for the notification to proceed.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 19:06:15 GMT</pubDate>
    <dc:creator>PistolShrimp</dc:creator>
    <dc:date>2021-06-11T19:06:15Z</dc:date>
    <item>
      <title>Bulk Resolution for Playbook Prompts?</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Bulk-Resolution-for-Playbook-Prompts/m-p/555507#M651</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there a way to simultaneously/bulk respond to multiple notifications generated by prompt actions, or an admin override to dismiss prompts and allow a playbook to move on to a next step?&lt;/P&gt;&lt;P&gt;Ran into a couple situations where many related events need a single prompt response.&amp;nbsp; We can bulk edit the events to close them, but the associated playbook will continue to wait for the notification to proceed.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 19:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Bulk-Resolution-for-Playbook-Prompts/m-p/555507#M651</guid>
      <dc:creator>PistolShrimp</dc:creator>
      <dc:date>2021-06-11T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Resolution for Playbook Prompts?</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Bulk-Resolution-for-Playbook-Prompts/m-p/558472#M666</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The only way I found to accomplish this is by running a heavily customized playbook.&amp;nbsp; I would have hoped this would be in the &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTApproval" target="_blank" rel="noopener"&gt;Approval REST API&lt;/A&gt; or administrator interface to respond to all specific running prompts, but I couldn't find any method other than cancelling all playbooks or a customized playbook.&lt;/P&gt;&lt;P&gt;Here's the short and sweet of it and I'll dig a little deeper after.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtered REST container call&amp;gt;REST container call for playbook_runs&amp;gt;list out running playbooks&amp;gt;REST playbook_run cancel API.&amp;nbsp; This will cancel only specified playbooks running in specified containers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the long and sour of it.&amp;nbsp; I've probably over-complicated it, but sadly that's my method of operation.&amp;nbsp; All rests are using the Phantom http app.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Filtered REST call&lt;/STRONG&gt; - Perform a "&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTContainers#.2Frest.2Fcontainer.2F.26lt.3Bcontainer_id.26gt.3B_optional_query_parameters" target="_blank" rel="noopener"&gt;Container Call&lt;/A&gt;" with a "&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTQueryData" target="_blank" rel="noopener"&gt;Query for Data&lt;/A&gt;" such /rest/container/?_filter_name="Test Container Names".&lt;/P&gt;&lt;P&gt;The output returns the containerIDs for all query matches.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Playbook Runs REST call&lt;/STRONG&gt; - On the "Query for Data" doc, there's a container p&lt;SPAN&gt;seudo field&lt;/SPAN&gt;&amp;nbsp;"playbook runs" for "playbook_runs".&amp;nbsp; Feed the containerIDs to this with "/rest/container/{0}/playbook_runs" in a format block.&lt;/P&gt;&lt;P&gt;This outputs all playbooks that ran on a container.&amp;nbsp; Note that this may need multiple page calls with "/rest/container/{0}/playbook_runs?page=&lt;EM&gt;n&lt;/EM&gt;".&amp;nbsp; I performed this in the Global Block editing section with my own functions and leveraging callbacks to tie it in to the action blocks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;List Running Playbooks&amp;nbsp;&lt;/STRONG&gt;- Now that you have a list of all playbooks running from the previous step, I pulled the playbook ID, status, and message.&amp;nbsp; Using the defined functions in the global block, I gathered all these IDs, statuses, and messages into their own list and used a &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlaybookAPI/PlaybookAPI#custom_function" target="_blank" rel="noopener"&gt;custom function playbook API&lt;/A&gt; call so I can hook back into the visual editor.&amp;nbsp; In the custom function, I whittle down the list of items to just what I want to cancel, then pass that out of the custom function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REST playbook_run cancel API&amp;nbsp;&lt;/STRONG&gt;- Now with the list of playbook run IDs in hand, I can leverage the &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTRunPlaybook#.2Frest.2Fplaybook_run.2F.26lt.3Bid.26gt.3B" target="_blank" rel="noopener"&gt;Run Playbook endpoint&lt;/A&gt;&amp;nbsp;which allows a running playbook to be cancelled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my ugly way of "responding" to multiple hanging playbooks or unnecessary prompts without responding one by one or cancelling everything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 20:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Bulk-Resolution-for-Playbook-Prompts/m-p/558472#M666</guid>
      <dc:creator>Maurice_Moss</dc:creator>
      <dc:date>2021-07-06T20:19:37Z</dc:date>
    </item>
  </channel>
</rss>

