<?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: add a managed device into panorama in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171019#M1411</link>
    <description>&lt;P&gt;I use this API call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -v "https://&amp;lt;panorama_ip&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;key=&amp;lt;my_key&amp;gt;&amp;amp;xpath=/config/mgt-config/devices&amp;amp;element=&amp;lt;entry name='111111111111111'/&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 13:53:10 GMT</pubDate>
    <dc:creator>CNS-SUPPORT</dc:creator>
    <dc:date>2017-08-10T13:53:10Z</dc:date>
    <item>
      <title>API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/170961#M1406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for the correct syntax to add a new managed device (serial number) into panorama, using API.&lt;/P&gt;&lt;P&gt;I tried lots of stuffs, but without success.&lt;/P&gt;&lt;P&gt;Does anybody can help me? or is it simply not supported?&lt;/P&gt;&lt;P&gt;Thx in advance,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:13:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/170961#M1406</guid>
      <dc:creator>CNS-SUPPORT</dc:creator>
      <dc:date>2017-08-10T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171009#M1407</link>
      <description>&lt;P&gt;The call to add a firewall with serial number 12345 is:&lt;/P&gt;&lt;PRE&gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/mgt-config/devices&amp;amp;element=&amp;lt;entry name="12345"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;If you're curious how I ended up finding the syntax, I used Web UI Debug to look at the call that was done when I added the serial number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Management-Articles/How-to-Run-a-PAN-OS-Web-UI-Debug/ta-p/58117" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Management-Articles/How-to-Run-a-PAN-OS-Web-UI-Debug/ta-p/58117&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:24:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171009#M1407</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-08-10T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171015#M1408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I alreaydy tried this syntax, I got an error:&lt;/P&gt;&lt;P&gt;"a duplicate parameter was found in the argument string (name)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pushing the API request from Ansible via a curl command.&lt;/P&gt;&lt;P&gt;If i do it from the shell directly, I got HTTP/1.1 404 Not Found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tested it ?&lt;/P&gt;&lt;P&gt;I used WebUI, CLI debug and API Browser to search if I missed something:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WEBui;&lt;/P&gt;&lt;P&gt;&amp;lt;request cmd="add" obj="/config/mgt-config/devices" cookie="2012481505869557" target="panorama"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;entry name="111111111111111"/&amp;gt;&lt;BR /&gt;&amp;lt;/request&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CLI:&lt;/P&gt;&lt;P&gt;&amp;lt;request cmd="set" obj="/config/mgt-config/devices" cookie="3769490762205842"&amp;gt;&amp;lt;entry name='111111111111111'/&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cmd action is different, but both work. Only from API I cannot get it working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:46:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171015#M1408</guid>
      <dc:creator>CNS-SUPPORT</dc:creator>
      <dc:date>2017-08-10T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171016#M1409</link>
      <description>&lt;P&gt;Did you try the API call I provided? I verified that worked on my firewall.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:48:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171016#M1409</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-08-10T13:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171017#M1410</link>
      <description>&lt;P&gt;Can you provide the API call that you're using, minus the key and IP address?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:48:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171017#M1410</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-08-10T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171019#M1411</link>
      <description>&lt;P&gt;I use this API call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -v "https://&amp;lt;panorama_ip&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;key=&amp;lt;my_key&amp;gt;&amp;amp;xpath=/config/mgt-config/devices&amp;amp;element=&amp;lt;entry name='111111111111111'/&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:53:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171019#M1411</guid>
      <dc:creator>CNS-SUPPORT</dc:creator>
      <dc:date>2017-08-10T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171020#M1412</link>
      <description>&lt;P&gt;Interesting. I was testing previously using the browser, which worked fine. Curl does not work for this command for me, however. It returns a 404 error. I also tried the python requests library, which does work as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you also seeing a 404 returned?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:08:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171020#M1412</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-08-10T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171025#M1413</link>
      <description>&lt;P&gt;Yes: I got HTTP/1.1 404 Not Found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds like cURL is not sending it correctly &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;maybe because of the space between entry and name ??? wrong encoding?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:58:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171025#M1413</guid>
      <dc:creator>CNS-SUPPORT</dc:creator>
      <dc:date>2017-08-10T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171067#M1414</link>
      <description>&lt;P&gt;Good catch. Replacing that space with a %20 caused the command to succeed.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:39:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171067#M1414</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-08-10T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: API: add a managed device into panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171198#M1415</link>
      <description>&lt;P&gt;response status=\"success\" !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes !! %20 did it. Thanks a lot for your help !! I can continue to script crazy stuffs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 06:42:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-add-a-managed-device-into-panorama/m-p/171198#M1415</guid>
      <dc:creator>CNS-SUPPORT</dc:creator>
      <dc:date>2017-08-11T06:42:46Z</dc:date>
    </item>
  </channel>
</rss>

