<?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 PAN-PYTHON IN TERMINAL ( see the result of &amp;quot;show running security-policy | match index&amp;quot;) in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309469#M2164</link>
    <description>&lt;P&gt;We get output for command ""show running security-policy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what should be the format if we use "|"&lt;/P&gt;&lt;P&gt;i.e &amp;gt; what would be the format for the command&amp;nbsp; ( see the result of "show running security-policy | match index")&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 20:18:08 GMT</pubDate>
    <dc:creator>amartin</dc:creator>
    <dc:date>2020-02-05T20:18:08Z</dc:date>
    <item>
      <title>PAN-PYTHON IN TERMINAL ( see the result of "show running security-policy | match index")</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309469#M2164</link>
      <description>&lt;P&gt;We get output for command ""show running security-policy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what should be the format if we use "|"&lt;/P&gt;&lt;P&gt;i.e &amp;gt; what would be the format for the command&amp;nbsp; ( see the result of "show running security-policy | match index")&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:18:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309469#M2164</guid>
      <dc:creator>amartin</dc:creator>
      <dc:date>2020-02-05T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: PAN-PYTHON IN TERMINAL ( see the result of "show running security-policy | match index&amp;quot</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309521#M2165</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/103216"&gt;@amartin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So first and foremost, I wouldn't be publishing an API key on the internet. I don't think you can pipe output directly in the API like this; you would need to parse the result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 03:25:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309521#M2165</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2020-02-05T03:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: PAN-PYTHON IN TERMINAL ( see the result of "show running security-policy | match index&amp;</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309658#M2168</link>
      <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;. To add a little context, the pipe concept is a CLI construct, so it doesn't really apply to an API. This is made confusing by the fact that the PAN-OS API allows you to send it CLI commands, but a pipe on CLI is multiple commands sent together, which can't be done via API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the API output is a parsable structure like XML or JSON, the best way to get what you need is to pull it out of the output using existing XML and JSON tools. This makes it easy to collect or filter to the exact information you need based on your own criteria and do whatever you want with it, as opposed to the CLI which has limited filtering and output options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps! Let us know if you need help figuring out a parsing strategy for whatever programming language you're using.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:53:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-python-in-terminal-see-the-result-of-quot-show-running/m-p/309658#M2168</guid>
      <dc:creator>btorresgil</dc:creator>
      <dc:date>2020-02-05T20:53:08Z</dc:date>
    </item>
  </channel>
</rss>

