<?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 Getting containers from Jan to March using REST API in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640554#M1163</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the containers detials for stipulated time period, Lets say, Jan 1st 2023 - March 31st - 2023.&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know what is the format here to get it from REST API. I am trying using below query&amp;nbsp; and getting the results from the very latest conatiners as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://phantom.example.com/rest/container?sort=id&amp;amp;order=desc&amp;amp;label='phishing'&amp;amp;page_size=40000&amp;amp;&amp;quot;start_time&amp;quot;=&amp;quot;2023-03-01T00:36:41.728895Z&amp;quot;" target="_blank"&gt;https://phantom.example.com/rest/container?sort=id&amp;amp;order=desc&amp;amp;label='phishing'&amp;amp;page_size=40000&amp;amp;"start_time"="2023-03-01T00:00:41.728895Z"&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample output: sharing only one key: value pair&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"start_time":&amp;nbsp;"2023-04-19T07:36:41.728895Z",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 Apr 2023 10:03:23 GMT</pubDate>
    <dc:creator>JoshiSri</dc:creator>
    <dc:date>2023-04-19T10:03:23Z</dc:date>
    <item>
      <title>Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640554#M1163</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the containers detials for stipulated time period, Lets say, Jan 1st 2023 - March 31st - 2023.&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know what is the format here to get it from REST API. I am trying using below query&amp;nbsp; and getting the results from the very latest conatiners as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://phantom.example.com/rest/container?sort=id&amp;amp;order=desc&amp;amp;label='phishing'&amp;amp;page_size=40000&amp;amp;&amp;quot;start_time&amp;quot;=&amp;quot;2023-03-01T00:36:41.728895Z&amp;quot;" target="_blank"&gt;https://phantom.example.com/rest/container?sort=id&amp;amp;order=desc&amp;amp;label='phishing'&amp;amp;page_size=40000&amp;amp;"start_time"="2023-03-01T00:00:41.728895Z"&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample output: sharing only one key: value pair&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"start_time":&amp;nbsp;"2023-04-19T07:36:41.728895Z",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640554#M1163</guid>
      <dc:creator>JoshiSri</dc:creator>
      <dc:date>2023-04-19T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640557#M1165</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255647"&gt;@JoshiSri&lt;/a&gt;&amp;nbsp;you need to use the lte/gte conditions in the REST call:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;/rest/container?_filter_start_time__gte="2023-01-01T00:00:00"&amp;amp;_filter_start_time__lte="2023-03-01T00:00:00"&lt;/P&gt;&lt;P&gt;Note the double "_" for the lte/gte&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use python to create the date/time strings if you need to do this dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- If this helped please mark as the solution. Happy SOARing --&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640557#M1165</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2023-04-19T10:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640561#M1166</link>
      <description>&lt;P&gt;Awesome, worked like charm..!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;One last&amp;nbsp; query, is there any limit for "&lt;SPAN&gt;page_size=40000&lt;/SPAN&gt;" and "&lt;SPAN&gt;label='phishing'" this condition, is not working at all, is there a different way to parse label as phishing only containers?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again, for your quick response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640561#M1166</guid>
      <dc:creator>JoshiSri</dc:creator>
      <dc:date>2023-04-19T10:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640564#M1167</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255647"&gt;@JoshiSri&lt;/a&gt;&amp;nbsp;you need to add `_filter_&amp;lt;field&amp;gt;` to your query.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also I am not sure about the page size but if you set it to 0 then you get all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640564#M1167</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2023-04-19T10:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640572#M1168</link>
      <description>&lt;P&gt;Superb..!! Again, on the mark. Is there any doc for these kind of parameters?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one on the phantom doc is very on the higher level and is of no use if you want to drill down your search.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It helps, thanks a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 11:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640572#M1168</guid>
      <dc:creator>JoshiSri</dc:creator>
      <dc:date>2023-04-19T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting containers from Jan to March using REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640573#M1169</link>
      <description>&lt;P&gt;This is the best one from a fellow trust member:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/zamastyle/phantom_mhike/blob/main/Rest%20API%20Cheat%20Sheet.md" target="_blank"&gt;https://github.com/zamastyle/phantom_mhike/blob/main/Rest%20API%20Cheat%20Sheet.md&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to mark as a solution to help others with similar issues/queries&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 11:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Getting-containers-from-Jan-to-March-using-REST-API/m-p/640573#M1169</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2023-04-19T11:39:22Z</dc:date>
    </item>
  </channel>
</rss>

