<?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: Please check my xpath for me in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/please-check-my-xpath-for-me/m-p/206602#M1630</link>
    <description>&lt;P&gt;You have too much of your configuration in the xpath - since much of that configuartion does nto exist until you create your role.&lt;/P&gt;&lt;P&gt;I think your xpath should be /config/shared/admin-role and all the details of your role should be in the element XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET type of config commands are very similar to EDIT, hopefully the documentation for those will help&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-request-types/edit-configuration" target="_blank"&gt;https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-request-types/edit-configuration&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 19:50:36 GMT</pubDate>
    <dc:creator>JoeAndreini</dc:creator>
    <dc:date>2018-03-20T19:50:36Z</dc:date>
    <item>
      <title>Please check my xpath for me</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/please-check-my-xpath-for-me/m-p/202442#M1602</link>
      <description>&lt;P&gt;Hi I'm creating a new admin role via api but it is not working. Here is my complete request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://192.168.10.1/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/shared/admin-role/entry[@name='test_name']/role/device/xmlapi&amp;lt;config&amp;gt;enable&amp;lt;/config&amp;gt;&amp;amp;key=mykeyhere
 &lt;/PRE&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;The error I get is:&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;13&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="collapsible"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;line&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="collapsible-content"&gt;&lt;SPAN class="text"&gt;Could not find schema node for xpath /config/shared/admin-role/entry[@name='test_name']/role/device/xmlapi&lt;/SPAN&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;config&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;enable&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/config&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/line&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;/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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;It looks like it is looking for that name in the configs rather than creating it for me.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;Spent enough time going through all the available&amp;nbsp;methods of getting the xpath(https://ip/debug or debug cli on) but still getting an error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:46:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/please-check-my-xpath-for-me/m-p/202442#M1602</guid>
      <dc:creator>ffadhil</dc:creator>
      <dc:date>2018-02-27T06:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please check my xpath for me</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/please-check-my-xpath-for-me/m-p/206602#M1630</link>
      <description>&lt;P&gt;You have too much of your configuration in the xpath - since much of that configuartion does nto exist until you create your role.&lt;/P&gt;&lt;P&gt;I think your xpath should be /config/shared/admin-role and all the details of your role should be in the element XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET type of config commands are very similar to EDIT, hopefully the documentation for those will help&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-request-types/edit-configuration" target="_blank"&gt;https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-request-types/edit-configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 19:50:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/please-check-my-xpath-for-me/m-p/206602#M1630</guid>
      <dc:creator>JoeAndreini</dc:creator>
      <dc:date>2018-03-20T19:50:36Z</dc:date>
    </item>
  </channel>
</rss>

