<?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 Having an issue with checkboxes in API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/180591#M1464</link>
    <description>&lt;P&gt;I am having an issue with changing settings that use checkboxes through API. For example the setting under&amp;nbsp;&lt;/P&gt;&lt;P&gt;/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/services. If I try to set &amp;lt;disable-telnet&amp;gt;&amp;lt;/disable-telnet&amp;gt; it says that &amp;lt;disable-telnet&amp;gt;&amp;lt;/disable-telnet&amp;gt; is an invalid object. If I use the api browser and click on disable-telnet it returns success but code="7" which means invalid object and really isn't success. If I try the api browser and do a submit for just services it returns only a few of the checkboxes and what the settings are. We are currently on the latest version of 7. We have hit this in other parts of the config for checkboxes also. I did the debug to see what is happening when somebody sets a checkbox but it is the only part that doesn't seem to translate to api properlyl.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 17:44:13 GMT</pubDate>
    <dc:creator>mconstant</dc:creator>
    <dc:date>2017-10-06T17:44:13Z</dc:date>
    <item>
      <title>Having an issue with checkboxes in API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/180591#M1464</link>
      <description>&lt;P&gt;I am having an issue with changing settings that use checkboxes through API. For example the setting under&amp;nbsp;&lt;/P&gt;&lt;P&gt;/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/services. If I try to set &amp;lt;disable-telnet&amp;gt;&amp;lt;/disable-telnet&amp;gt; it says that &amp;lt;disable-telnet&amp;gt;&amp;lt;/disable-telnet&amp;gt; is an invalid object. If I use the api browser and click on disable-telnet it returns success but code="7" which means invalid object and really isn't success. If I try the api browser and do a submit for just services it returns only a few of the checkboxes and what the settings are. We are currently on the latest version of 7. We have hit this in other parts of the config for checkboxes also. I did the debug to see what is happening when somebody sets a checkbox but it is the only part that doesn't seem to translate to api properlyl.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:44:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/180591#M1464</guid>
      <dc:creator>mconstant</dc:creator>
      <dc:date>2017-10-06T17:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue with checkboxes in API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/185228#M1492</link>
      <description>&lt;P&gt;Looks like these checkboxes are expecting "yes" or "no" as values.&amp;nbsp; As an example, if you want to enable HTTPS but disable telnet, this seems to be working for me (7.1.x):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Type: config&lt;/P&gt;
&lt;P&gt;Action: set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;(xpath) /config/devices/entry[@name='localhost.localdomain']/deviceconfig/system&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;(element)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;service&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;lt;disable-https&amp;gt;no&amp;lt;/disable-https&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;lt;disable-telnet&amp;gt;yes&amp;lt;/disable-telnet&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;/service&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:08:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/185228#M1492</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2017-11-02T19:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue with checkboxes in API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/188954#M1504</link>
      <description>&lt;P&gt;Weird. I just got a response back from second level support that they were able to replicate the problem. They are going to enumerate through all the checkboxes to see all the ones that are causing the issue and try to provide a fix.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:09:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/188954#M1504</guid>
      <dc:creator>mconstant</dc:creator>
      <dc:date>2017-11-28T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue with checkboxes in API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/188977#M1505</link>
      <description>&lt;P&gt;AFAIK, you can't `set` something&amp;nbsp;to an empty value that's expecting a `yes` or a `no`.&amp;nbsp; Along those same lines, there are fields in the API that you can set as empty, while others will not tolerate it.&amp;nbsp; Could you refer them to my posts, and if they belive this is a bug, ask for a bug ID and share it here?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:04:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/having-an-issue-with-checkboxes-in-api/m-p/188977#M1505</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2017-11-28T17:04:02Z</dc:date>
    </item>
  </channel>
</rss>

