<?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: Adding device serial number to Panorama with API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224805#M64526</link>
    <description>&lt;P&gt;This works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://urldefense.proofpoint.com/v2/url?u=https-3A__FW-5FIP_api_-3Ftype-3Dconfig-26action-3Dset-26key-3DAPI-5FKEY-26xpath-3D_config_mgt-2Dconfig_devices-26element-3D-253Centry&amp;amp;d=DwQFAw&amp;amp;c=sWOhRw5QTLWegJknwtSUs6ngyQ_FfJzQX1Y23ThJBbU&amp;amp;r=GJ1jXSYx0TrqJ7Yc3jsKdq1RMfX4ltN_3I2w7eLXVUc&amp;amp;m=C8M25qzM7Ybp59HSGZOjUXik2cqTrMfThq_xWdhWBMo&amp;amp;s=tpTr80WbcJgz3T-4VGqmtopneZCVew38s-VEBZuVZl4&amp;amp;e=" target="_blank"&gt;https://FW_IP/api/?type=config&amp;amp;action=set&amp;amp;key=API_KEY&amp;amp;xpath=/config/mgt-config/devices&amp;amp;element=&amp;lt;entry&lt;/A&gt; name='SERIAL_NUMBER'/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Aug 2018 00:03:37 GMT</pubDate>
    <dc:creator>RogerMccarrick</dc:creator>
    <dc:date>2018-08-05T00:03:37Z</dc:date>
    <item>
      <title>Adding device serial number to Panorama with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224793#M64523</link>
      <description>&lt;P&gt;I am trying to add a PA-VM to the Panorama using the Panorama API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1.0.20.30.40//api/?key=LUFRPT0zAndSoOn" target="_blank"&gt;https://1.0.20.30.40//api/?key=LUFRPT0zAndSoOn&lt;/A&gt;&lt;SPAN&gt;AndSoOn&lt;/SPAN&gt;&lt;SPAN&gt;AndSoOn&lt;/SPAN&gt;=&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='all']&amp;amp;element=&amp;lt;serial&amp;gt;12345678012345&amp;lt;/serial&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I get :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StatusCode : 200&lt;BR /&gt;StatusDescription : OK&lt;BR /&gt;Content : &amp;lt;response status="error" code="12"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;At most 1 occurrence is allowed for devices/entry&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To show devices the the commad is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.33.15.35/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Cdevices%3E%3Call%3E%3C%2Fall%3E%3C%2Fdevices%3E%3C%2Fshow%3E&amp;amp;REST_API_TOKEN=118425639" target="_rest_api"&gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;devices&amp;gt;&amp;lt;all&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/devices&amp;gt;&amp;lt;/show&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.33.15.35/api/?type=op&amp;amp;cmd=%3Cshow%3E%3Cdevices%3E%3Cconnected%3E%3C%2Fconnected%3E%3C%2Fdevices%3E%3C%2Fshow%3E&amp;amp;REST_API_TOKEN=1781889577" target="_rest_api"&gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;devices&amp;gt;&amp;lt;connected&amp;gt;&amp;lt;/connected&amp;gt;&amp;lt;/devices&amp;gt;&amp;lt;/show&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct API call to add a serial number to the Panorama?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 15:54:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224793#M64523</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-04T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding device serial number to Panorama with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224804#M64525</link>
      <description>&lt;P&gt;Getting closer, but not quite&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;api/?type=config&amp;amp;action=set&amp;amp;key=&lt;A href="https://1.0.20.30.40//api/?key=LUFRPT0zAndSoOn" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;LUFRPT0zAndSoOn&lt;/A&gt;&lt;SPAN&gt;AndSoOn&lt;/SPAN&gt;&lt;SPAN&gt;AndSoOn&lt;/SPAN&gt;&amp;amp;xpath=/config/mgt-config/devices/entry/[@name='&lt;SPAN&gt;12345678012345&lt;/SPAN&gt;']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;response&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;status&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;error&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;code&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;12&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="collapsible-content"&gt;&lt;DIV class="collapsible"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;msg&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="collapsible-content"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;line&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;Invalid target object in set handler&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/line&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/msg&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;any ideas? Thanks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 04 Aug 2018 21:15:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224804#M64525</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-04T21:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding device serial number to Panorama with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224805#M64526</link>
      <description>&lt;P&gt;This works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://urldefense.proofpoint.com/v2/url?u=https-3A__FW-5FIP_api_-3Ftype-3Dconfig-26action-3Dset-26key-3DAPI-5FKEY-26xpath-3D_config_mgt-2Dconfig_devices-26element-3D-253Centry&amp;amp;d=DwQFAw&amp;amp;c=sWOhRw5QTLWegJknwtSUs6ngyQ_FfJzQX1Y23ThJBbU&amp;amp;r=GJ1jXSYx0TrqJ7Yc3jsKdq1RMfX4ltN_3I2w7eLXVUc&amp;amp;m=C8M25qzM7Ybp59HSGZOjUXik2cqTrMfThq_xWdhWBMo&amp;amp;s=tpTr80WbcJgz3T-4VGqmtopneZCVew38s-VEBZuVZl4&amp;amp;e=" target="_blank"&gt;https://FW_IP/api/?type=config&amp;amp;action=set&amp;amp;key=API_KEY&amp;amp;xpath=/config/mgt-config/devices&amp;amp;element=&amp;lt;entry&lt;/A&gt; name='SERIAL_NUMBER'/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 00:03:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224805#M64526</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-05T00:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding device serial number to Panorama with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224824#M64532</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Just FYI, and I forget to do it often as well, but when passing along API values you should put it in a Code box. This stops Live from auto-formating the API request as an actual hyperlink, which often breaks longer URLs and makes it difficult for people to see what they should actually be using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 20:29:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/adding-device-serial-number-to-panorama-with-api/m-p/224824#M64532</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2018-08-05T20:29:03Z</dc:date>
    </item>
  </channel>
</rss>

