<?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: Help with create api call in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/239433#M1812</link>
    <description>&lt;P&gt;I found this, however as&amp;nbsp; BPry points out, the user dont put the answer in code box, so i still dont know the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/General-Topics/Adding-device-serial-number-to-Panorama-with-API/m-p/224805#M64526" target="_blank"&gt;https://live.paloaltonetworks.com/t5/General-Topics/Adding-device-serial-number-to-Panorama-with-API/m-p/224805#M64526&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Nov 2018 18:33:47 GMT</pubDate>
    <dc:creator>hbalzac</dc:creator>
    <dc:date>2018-11-11T18:33:47Z</dc:date>
    <item>
      <title>Help with create api call</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/239331#M1811</link>
      <description>&lt;P&gt;Despite me reading alot of documentation i have not really understood this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to add a device in panorama, so i run this command from the cli.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set mgt-config devices 1234555 hostname 1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me the following output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;(container-tag: mgt-config container-tag: devices container-tag: entry key-tag: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name value: 1234555 leaf-tag: hostname value: 1234)&amp;nbsp;
((eol-matched: . #t) (xpath-prefix: . /config) (context-inserted-at-end-p: . #f) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&amp;nbsp;
(mgt-config (devices (entry (@ (name 1234555)) (hostname 1234))))&amp;nbsp;
(hostname 1234)&amp;nbsp;


&amp;lt;request cmd="set" obj="/config/mgt-config/devices/entry[@name='1234555']" cooki&amp;nbsp;
e="5357976790132914"&amp;gt;&amp;lt;hostname&amp;gt;1234&amp;lt;/hostname&amp;gt;&amp;lt;/request&amp;gt;&amp;nbsp;


2018-11-09 16:35:03&amp;nbsp;
&amp;lt;response status="success" code="20"&amp;gt;&amp;lt;msg&amp;gt;command succeeded&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&amp;nbsp;
&amp;nbsp;&lt;/PRE&gt;&lt;DIV class="pG"&gt;&lt;SPAN&gt;So when i try to create a request of this it looks like this (if i take the url)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="pG"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="pG"&gt;&lt;SPAN&gt;&lt;U&gt;&lt;A href="https://xsensmbq003ap.se.shb.biz/api/?type=config&amp;amp;action=set&amp;amp;Key=LUFRPT1FYXpRSlNvdjc2M1ZIVDdHZG40NWx2c1BlZ2c9bHAyUmhhRHBxRUptd1ZXNnQrK2hnZz09&amp;amp;xpath=/config/mgt-config/devices/entry%5b@name%271234645%27%5d" target="_blank"&gt;https://1.1.1.1/api/?type=config&amp;amp;action=set&amp;amp;Key=LUFRPT1FYXpRSlNvdjc2M1ZIVDdHZG40NWx2c1BlZ2c9bHAyUmhhRHBxRUptd1ZXNNNNnQrK2hnZz09&amp;amp;xpath=/config/mgt-config/devices/entry[@name '1111&lt;/A&gt;']&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="pG"&gt;This give me a "error 12"&lt;/DIV&gt;&lt;DIV class="pG"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="pG"&gt;&lt;SPAN&gt;If i use the api browser it gives me a get command, but i want to add a new device. Any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Nov 2018 18:01:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/239331#M1811</guid>
      <dc:creator>hbalzac</dc:creator>
      <dc:date>2018-11-09T18:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with create api call</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/239433#M1812</link>
      <description>&lt;P&gt;I found this, however as&amp;nbsp; BPry points out, the user dont put the answer in code box, so i still dont know the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/General-Topics/Adding-device-serial-number-to-Panorama-with-API/m-p/224805#M64526" target="_blank"&gt;https://live.paloaltonetworks.com/t5/General-Topics/Adding-device-serial-number-to-Panorama-with-API/m-p/224805#M64526&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 18:33:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/239433#M1812</guid>
      <dc:creator>hbalzac</dc:creator>
      <dc:date>2018-11-11T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with create api call</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/240351#M1816</link>
      <description>&lt;P&gt;According to that other post, looks like at the end of the code they are adding&lt;BR /&gt;&lt;BR /&gt;devices&amp;amp;element=&amp;lt;entry&amp;gt;&lt;SPAN&gt;@name="SerialNumber"&lt;/SPAN&gt;&amp;lt;/entry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried that or some variation of that?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 16:13:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/help-with-create-api-call/m-p/240351#M1816</guid>
      <dc:creator>dpeterson4</dc:creator>
      <dc:date>2018-11-19T16:13:09Z</dc:date>
    </item>
  </channel>
</rss>

