<?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 push scope &amp;gt; Prisma access &amp;gt; remote networks using api (Panorama-managed) in Prisma Access Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/314921#M65</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am writing a script in python using pan-python module to automate Prisma Access onboarding. I can create all kinds configurations and commit changes to Panorama, but I can't seem to find "push to devices" for Prisma access in the API, which is the main purpose of this automation!&lt;/P&gt;&lt;P&gt;Has anyone done it before or have an idea on how to push to Prisma with API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;xapi.commit(cmd="&amp;lt;commit-all&amp;gt;&amp;lt;/commit-all&amp;gt;", action=all, sync=False, interval=None, timeout=None)&lt;BR /&gt;except pan.xapi.PanXapiError as msg:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print('commit: ', msg, file=sys.stderr)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sys.exit(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2020 15:54:34 GMT</pubDate>
    <dc:creator>sa_z</dc:creator>
    <dc:date>2020-03-06T15:54:34Z</dc:date>
    <item>
      <title>push scope &gt; Prisma access &gt; remote networks using api (Panorama-managed)</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/314921#M65</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am writing a script in python using pan-python module to automate Prisma Access onboarding. I can create all kinds configurations and commit changes to Panorama, but I can't seem to find "push to devices" for Prisma access in the API, which is the main purpose of this automation!&lt;/P&gt;&lt;P&gt;Has anyone done it before or have an idea on how to push to Prisma with API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;xapi.commit(cmd="&amp;lt;commit-all&amp;gt;&amp;lt;/commit-all&amp;gt;", action=all, sync=False, interval=None, timeout=None)&lt;BR /&gt;except pan.xapi.PanXapiError as msg:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print('commit: ', msg, file=sys.stderr)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sys.exit(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 15:54:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/314921#M65</guid>
      <dc:creator>sa_z</dc:creator>
      <dc:date>2020-03-06T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: push scope &gt; Prisma access &gt; remote networks using api (Panorama-managed)</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/317046#M71</link>
      <description>&lt;P&gt;Hi there S,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;.xapi.commit(&lt;SPAN&gt;action&lt;/SPAN&gt;=&lt;SPAN&gt;'all'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                 &lt;SPAN&gt;cmd&lt;/SPAN&gt;=&lt;SPAN&gt;'&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                     '&amp;lt;entry name="Remote_Network_Device_Group"/&amp;gt;'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                     '&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;'&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Note, this was last tested with GPCS about a year ago, and there have been some changes, so I'm not 100% sure this will work as-is for you. Good luck and let us know if this works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:51:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/317046#M71</guid>
      <dc:creator>nembery</dc:creator>
      <dc:date>2020-03-18T13:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: push scope &gt; Prisma access &gt; remote networks using api (Panorama-managed)</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/317048#M72</link>
      <description>&lt;P&gt;Hi Nate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer! I already found a solution.&lt;/P&gt;&lt;P&gt;Your code is almost correct. The cmd=&amp;lt;commit-all&amp;gt;...&amp;lt;/commit-all&amp;gt; would NOT work. The action should be set to &lt;STRONG&gt;all&lt;/STRONG&gt; and the cmd should be &lt;STRONG&gt;&amp;lt;commit&amp;gt;...&amp;lt;/commit&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:19:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-access-discussions/push-scope-gt-prisma-access-gt-remote-networks-using-api/m-p/317048#M72</guid>
      <dc:creator>sa_z</dc:creator>
      <dc:date>2020-03-18T14:19:41Z</dc:date>
    </item>
  </channel>
</rss>

