<?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 How to parse JSON output from R80 Management API with JQ? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-parse-JSON-output-from-R80-Management-API-with-JQ/m-p/14093#M983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;JQ&amp;nbsp;is a lightweight and flexible command-line JSON processor.&amp;nbsp;Y&lt;SPAN&gt;ou can use it to slice and filter and map and transform structured data returned by R80 API commands and tools.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Here is a list of some useful examples from this community, showing JQ magic:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/1083"&gt;Parsing the output of "mgmt_cli"&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/6317-finding-main-ip-of-any-managed-gateway"&gt;https://community.checkpoint.com/thread/6317-finding-main-ip-of-any-managed-gateway&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1361"&gt;CLI API Example json to CSV Export for later use in batch add API commands&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/5341"&gt;What is the easiest way to get the number of objects for a specific type, e.g. hosts&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/thread/4961-run-script-output?commentID=5745#comment" title="https://community.checkpoint.com/message/5745-re-run-script-output?commentID=5745#comment-5745"&gt;https://community.checkpoint.com/message/5745-re-run-script-output?commentID=5745#comment-5745&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/4983"&gt;How to list all uids with specific comment in rulebase&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/thread/5448-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comment" title="https://community.checkpoint.com/message/7630-re-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comment-7630"&gt;https://community.checkpoint.com/message/7630-re-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comm…&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Also, here is a complete manual for JQ -&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://stedolan.github.io/jq/manual/"&gt;JQ Manual&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Enjoy!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Nov 2017 08:56:11 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2017-11-26T08:56:11Z</dc:date>
    <item>
      <title>How to parse JSON output from R80 Management API with JQ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-parse-JSON-output-from-R80-Management-API-with-JQ/m-p/14093#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;JQ&amp;nbsp;is a lightweight and flexible command-line JSON processor.&amp;nbsp;Y&lt;SPAN&gt;ou can use it to slice and filter and map and transform structured data returned by R80 API commands and tools.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Here is a list of some useful examples from this community, showing JQ magic:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/1083"&gt;Parsing the output of "mgmt_cli"&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/6317-finding-main-ip-of-any-managed-gateway"&gt;https://community.checkpoint.com/thread/6317-finding-main-ip-of-any-managed-gateway&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1361"&gt;CLI API Example json to CSV Export for later use in batch add API commands&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/5341"&gt;What is the easiest way to get the number of objects for a specific type, e.g. hosts&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/thread/4961-run-script-output?commentID=5745#comment" title="https://community.checkpoint.com/message/5745-re-run-script-output?commentID=5745#comment-5745"&gt;https://community.checkpoint.com/message/5745-re-run-script-output?commentID=5745#comment-5745&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://community.checkpoint.com/thread/4983"&gt;How to list all uids with specific comment in rulebase&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/thread/5448-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comment" title="https://community.checkpoint.com/message/7630-re-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comment-7630"&gt;https://community.checkpoint.com/message/7630-re-how-to-check-if-policy-is-changed-but-not-installed?commentID=7630#comm…&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Also, here is a complete manual for JQ -&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="https://stedolan.github.io/jq/manual/"&gt;JQ Manual&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Enjoy!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 08:56:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-parse-JSON-output-from-R80-Management-API-with-JQ/m-p/14093#M983</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-11-26T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse JSON output from R80 Management API with JQ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-parse-JSON-output-from-R80-Management-API-with-JQ/m-p/14094#M984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Useful tool, thanks for sharing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 18:32:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-parse-JSON-output-from-R80-Management-API-with-JQ/m-p/14094#M984</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-11-26T18:32:20Z</dc:date>
    </item>
  </channel>
</rss>

