<?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 to export security policy in json format in Next-Generation Firewall Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559340#M1894</link>
    <description>&lt;P&gt;As far as I know, there is no way of exporting the policies as JSON. The supported data formats are CSV and PDF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend to you to export the data as CSV files and convert it to JSON afterwards. There are many ways to archive that but I would avoid online tools since we don't know what they do with the uploaded data. As an alternative, you could create a little &lt;A title="https://www.askpython.com/python/examples/convert-csv-to-json" href="https://www.askpython.com/python/examples/convert-csv-to-json" target="_self"&gt;Python&lt;/A&gt;/&lt;A title="https://stackoverflow.com/questions/16831250/how-to-convert-csv-to-json-in-node-js" href="https://stackoverflow.com/questions/16831250/how-to-convert-csv-to-json-in-node-js" target="_self"&gt;Node.js&lt;/A&gt; Script or do the convertion directly in &lt;A title="https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/get-table-data" href="https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/get-table-data" target="_self"&gt;Excel (using Typescript)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps a bit and I wish you good luck with your project!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 10:02:35 GMT</pubDate>
    <dc:creator>JeremyGlaus</dc:creator>
    <dc:date>2023-09-25T10:02:35Z</dc:date>
    <item>
      <title>how to export security policy in json format</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559304#M1893</link>
      <description>&lt;P&gt;Is their any why to&amp;nbsp;&lt;SPAN&gt; export Panorama managed security Policies in JSON file&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 07:58:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559304#M1893</guid>
      <dc:creator>sshivanandap</dc:creator>
      <dc:date>2023-09-25T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to export security policy in json format</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559340#M1894</link>
      <description>&lt;P&gt;As far as I know, there is no way of exporting the policies as JSON. The supported data formats are CSV and PDF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend to you to export the data as CSV files and convert it to JSON afterwards. There are many ways to archive that but I would avoid online tools since we don't know what they do with the uploaded data. As an alternative, you could create a little &lt;A title="https://www.askpython.com/python/examples/convert-csv-to-json" href="https://www.askpython.com/python/examples/convert-csv-to-json" target="_self"&gt;Python&lt;/A&gt;/&lt;A title="https://stackoverflow.com/questions/16831250/how-to-convert-csv-to-json-in-node-js" href="https://stackoverflow.com/questions/16831250/how-to-convert-csv-to-json-in-node-js" target="_self"&gt;Node.js&lt;/A&gt; Script or do the convertion directly in &lt;A title="https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/get-table-data" href="https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/get-table-data" target="_self"&gt;Excel (using Typescript)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps a bit and I wish you good luck with your project!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 10:02:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559340#M1894</guid>
      <dc:creator>JeremyGlaus</dc:creator>
      <dc:date>2023-09-25T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to export security policy in json format</title>
      <link>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559349#M1895</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/303693"&gt;@sshivanandap&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most simple way to "export" the security policy in JSON format is to run the command "show rulebase security" in CLI configuration mode and copy the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to retrieve the security policy more than once, you can automate it with the REST API and also get the response in JSON format.&amp;nbsp; &lt;A href="https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-rest-api" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-rest-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PAN-OS GUI is a human interface, and CSV and PDF are human-readable formats.&amp;nbsp; The PAN-OS API (XML and REST) is a machine interface, and support machine-readable formats or XML and JSON.&amp;nbsp; The reason that you want the format in JSON is &lt;EM&gt;most likely&lt;/EM&gt; to run some type of automation against it.&amp;nbsp; (I could be wrong.)&amp;nbsp; If you are going to run automation against the data, you might as well automate the retrieval of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 11:19:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/next-generation-firewall/how-to-export-security-policy-in-json-format/m-p/559349#M1895</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-09-25T11:19:13Z</dc:date>
    </item>
  </channel>
</rss>

