<?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: API call for nat-policy-addresses in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/226604#M1754</link>
    <description>&lt;P&gt;You should be able to append &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"&amp;amp;vsys={vsys_name}" to your request to target a specific vsys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This should work for any op command in a multi-vsys system&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 14:57:54 GMT</pubDate>
    <dc:creator>JoeAndreini</dc:creator>
    <dc:date>2018-08-09T14:57:54Z</dc:date>
    <item>
      <title>API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/221938#M1725</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;we would use an API to see the output of&amp;nbsp;show running nat-policy-addresses command for each vsys.&lt;/P&gt;&lt;P&gt;The following API work properly when on the firewall there is only one vsys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://&amp;lt;firewall-IP&amp;gt;/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Crunning%3E%3Cnat-policy-addresses%3E%3C%2Fnat-policy-addresses%3E%3C%2Frunning%3E%3C%2Fshow%3E&amp;amp;key=&amp;lt;APIKEY&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have multiple virtual system and we need to have the output for each vsys.&lt;/P&gt;&lt;P&gt;From CLI we get it with two different command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;set system setting target-vsys &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;show running nat-policy-addresses&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems there is no way to specify the vsys into this specific API call.&lt;/P&gt;&lt;P&gt;Do you know if is it possible to have this information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jacopo&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:05:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/221938#M1725</guid>
      <dc:creator>Jacopo_Vigano</dc:creator>
      <dc:date>2018-07-12T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/224449#M1743</link>
      <description>&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Change the vsys to specific vsys number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CLI:&lt;/P&gt;&lt;PRE&gt;show config running xpath devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/nat/rules&lt;/PRE&gt;&lt;P&gt;API:&lt;/P&gt;&lt;PRE&gt;"&amp;lt;show&amp;gt;&amp;lt;config&amp;gt;&amp;lt;running&amp;gt;&amp;lt;xpath&amp;gt;devices/entry[@name=&amp;amp;apos;localhost.localdomain&amp;amp;apos;]/vsys/entry[@name=&amp;amp;apos;vsys1&amp;amp;apos;]/rulebase/nat/rules&amp;lt;/xpath&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/config&amp;gt;&amp;lt;/show&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 16:12:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/224449#M1743</guid>
      <dc:creator>Sly_Cooper</dc:creator>
      <dc:date>2018-08-01T16:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/224909#M1753</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/30703"&gt;@Sly_Cooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your help. The API that you suggested retrive the NAT rulebase and not&amp;nbsp;&lt;SPAN&gt;nat-policy-addresses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need to retrive the IP addresses and not the name of objects used into the NAT rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jacopo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:36:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/224909#M1753</guid>
      <dc:creator>Jacopo_Vigano</dc:creator>
      <dc:date>2018-08-06T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/226604#M1754</link>
      <description>&lt;P&gt;You should be able to append &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"&amp;amp;vsys={vsys_name}" to your request to target a specific vsys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This should work for any op command in a multi-vsys system&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:57:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/226604#M1754</guid>
      <dc:creator>JoeAndreini</dc:creator>
      <dc:date>2018-08-09T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/227746#M1757</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/35464"&gt;@Jacopo_Vigano&lt;/a&gt;I have similar requirements and I am trying to solve the problem via python script (work in progress). I dont think there is any direct way to map address to ip.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:10:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/227746#M1757</guid>
      <dc:creator>Sly_Cooper</dc:creator>
      <dc:date>2018-08-21T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: API call for nat-policy-addresses</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/228168#M1763</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/30703"&gt;@Sly_Cooper&lt;/a&gt;, I'm quite sure that with a script should work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jacopo&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:43:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-call-for-nat-policy-addresses/m-p/228168#M1763</guid>
      <dc:creator>Jacopo_Vigano</dc:creator>
      <dc:date>2018-08-24T12:43:53Z</dc:date>
    </item>
  </channel>
</rss>

