<?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: Issue with setting QoS egress value with API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/issue-with-setting-qos-egress-value-with-api/m-p/232892#M66807</link>
    <description>&lt;P&gt;Solved this with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;action=edit&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;action=set&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 06:05:30 GMT</pubDate>
    <dc:creator>RogerMccarrick</dc:creator>
    <dc:date>2018-09-28T06:05:30Z</dc:date>
    <item>
      <title>Issue with setting QoS egress value with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/issue-with-setting-qos-egress-value-with-api/m-p/232827#M66790</link>
      <description>&lt;P&gt;For scripting purpose I need to be able to set egress-max values in QoS with the API.&lt;/P&gt;&lt;P&gt;First I created a QoS profile, TRUST-QOS,&amp;nbsp; and set the egress-max to 20&lt;/P&gt;&lt;P&gt;In powershell, I have the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	$paURL = "https://" + $PAIP + "//api/?key=" + $apiKey + 
	"&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/qos/profile/entry[@name='TRUST-QOS']/aggregate-bandwidth/egress-max&amp;amp;element=&amp;lt;egress-max&amp;gt;30&amp;lt;/egress-max&amp;gt;"
	Invoke-WebRequest -uri $panURL&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is supposed to set the value to 30. The reply I get is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#993300"&gt; set failed, may need to override template object first&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Palo Alto is new (it's a VM), not yet licenced or connected to a Panorama.&lt;/P&gt;&lt;P&gt;However I can set the value in the GUI or on the CLI with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;set network qos profile TRUST-QOS aggregate-bandwidth egress-max 30&lt;/PRE&gt;&lt;P&gt;Overrides are for templates but as this is not connected to a panorama and has no template.&lt;/P&gt;&lt;P&gt;Any idea why I get this message with the API? I am able to do many other configurations with the API.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 21:20:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/issue-with-setting-qos-egress-value-with-api/m-p/232827#M66790</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-09-27T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting QoS egress value with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/issue-with-setting-qos-egress-value-with-api/m-p/232892#M66807</link>
      <description>&lt;P&gt;Solved this with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;action=edit&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;action=set&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 06:05:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/issue-with-setting-qos-egress-value-with-api/m-p/232892#M66807</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-09-28T06:05:30Z</dc:date>
    </item>
  </channel>
</rss>

