<?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: Dynamic Objects Error in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33099#M24257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I've only seen this done through cli tools, using the filename in the URL does a GET request, instead you need to do a POST to submit data to the resource.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Have you tried using curl or wget to import the file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;curl --form file=@userdata.xml&lt;/P&gt;&lt;P&gt;"&lt;A href="http:" style="font-size: 10pt; line-height: 1.5em; color: #663366;"&gt;http://&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;lt;firewall&amp;gt;/api/?type=user-id&amp;amp;action=set&amp;amp;key=XXXXXX"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Your response should be -&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;line&amp;gt;userdata.xml saved&amp;lt;/line&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: there is a known bug on files could not be uploaded to the firewall using CURL with the XML API was fixed in 5.0.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to page 17 &amp;amp; 18 of the following article for the input file format:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/docs/DOC-4126" style="color: #663366;"&gt;https://live.paloaltonetworks.com/docs/DOC-4126&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Aditi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 02:43:22 GMT</pubDate>
    <dc:creator>apasupulati</dc:creator>
    <dc:date>2013-10-07T02:43:22Z</dc:date>
    <item>
      <title>Dynamic Objects Error</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33097#M24255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m trying to test using dynamic objects on 5.0 however I’m not sure If I’m missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document suggests the syntax to add a new entry do a dynamic address object is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;IP&amp;gt;/api/?type=user-id&amp;amp;action=set&amp;amp;key=&amp;lt;KEY&amp;gt;=&amp;amp;file-name=&amp;lt;XMLFILE&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Sabon LT Std','serif';"&gt;Where IP is the IP address of the firewall under management, KEY is the pre-generated key for the PAN-OS firewall and XMLFILE is the name of the XML file with the needed additions and/or deletions for the dynamic address object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve generated the key by creating a dedicated admin account. &lt;/P&gt;&lt;P&gt;But what I’m not sure about is the &amp;lt;XMLFILE&amp;gt;? Do I need to upload a file or do I reference a file somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error when I run the command just using a generic file name eg. dynobj.xml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;response status="error" code="400"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;result&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;msg&amp;gt;No file uploaded&amp;lt;/msg&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;/result&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 11:10:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33097#M24255</guid>
      <dc:creator>rds</dc:creator>
      <dc:date>2013-10-04T11:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Objects Error</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33098#M24256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is similar issue resolved in 5.0.8.&lt;/P&gt;&lt;P&gt;Please refer to release notes at &lt;A href="https://downloads.paloaltonetworks.com/software/PAN-OS-5.0.8-RN-revA.PDF?__gda__=1380975467_35d69ebda945f9eb038e88d5db1c239f" title="https://downloads.paloaltonetworks.com/software/PAN-OS-5.0.8-RN-revA.PDF?__gda__=1380975467_35d69ebda945f9eb038e88d5db1c239f"&gt;https://downloads.paloaltonetworks.com/software/PAN-OS-5.0.8-RN-revA.PDF?__gda__=1380975467_35d69ebda945f9eb038e88d5db1c…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 00:20:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33098#M24256</guid>
      <dc:creator>ukhapre</dc:creator>
      <dc:date>2013-10-05T00:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Objects Error</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33099#M24257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I've only seen this done through cli tools, using the filename in the URL does a GET request, instead you need to do a POST to submit data to the resource.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Have you tried using curl or wget to import the file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;curl --form file=@userdata.xml&lt;/P&gt;&lt;P&gt;"&lt;A href="http:" style="font-size: 10pt; line-height: 1.5em; color: #663366;"&gt;http://&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;lt;firewall&amp;gt;/api/?type=user-id&amp;amp;action=set&amp;amp;key=XXXXXX"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Your response should be -&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;line&amp;gt;userdata.xml saved&amp;lt;/line&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: there is a known bug on files could not be uploaded to the firewall using CURL with the XML API was fixed in 5.0.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to page 17 &amp;amp; 18 of the following article for the input file format:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/docs/DOC-4126" style="color: #663366;"&gt;https://live.paloaltonetworks.com/docs/DOC-4126&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Aditi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 02:43:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/dynamic-objects-error/m-p/33099#M24257</guid>
      <dc:creator>apasupulati</dc:creator>
      <dc:date>2013-10-07T02:43:22Z</dc:date>
    </item>
  </channel>
</rss>

