<?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: set generic-object ....help me with arrays please! in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94511#M5117</link>
    <description>&lt;P&gt;You know how laying out an explanation for other people can sometimes help? &amp;nbsp;I've made progress...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid &amp;lt;&lt;FONT face="times new roman,times"&gt;&lt;EM&gt;GWUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt; interfaces.set.1.uid &lt;FONT face="times new roman,times"&gt;&lt;EM&gt;&amp;lt;IFUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt; interfaces.set.1.owned-object.security.antispoof true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid &amp;lt;&lt;FONT face="times new roman,times"&gt;&lt;EM&gt;GWUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;interfaces.set.1.uid &lt;FONT face="times new roman,times"&gt;&lt;EM&gt;&amp;lt;IFUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;interfaces.set.1.owned-object.ipaddr 99.101.102.103&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(The 1 is arbitrary as far as I can tell and just used to associate the two parameters.) &amp;nbsp;These work, and showing the generic object puts them in the right place. &amp;nbsp;However, they don't appear in the GUI (even after publish). &amp;nbsp;What do I need to do to get these propagated and active?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 14:19:13 GMT</pubDate>
    <dc:creator>Greg_Harewood</dc:creator>
    <dc:date>2020-08-18T14:19:13Z</dc:date>
    <item>
      <title>set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94505#M5116</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;show generic-object uid xxx&lt;/FONT&gt; is enormously useful and self documenting.&lt;/P&gt;&lt;P&gt;For settings aspects of the same, parameters of owned objects are simple enough, e.g.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid FWUID firewallSetting.connectionsLimit 50000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;For arrays of objects, such as interfaces of a firewall, there is scattered documentation for things like...&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid FWUID interfaces.add.create "com.checkpoint.objects.classes.dummy.CpmiClusterInterface" \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;interfaces.add.owned-object.netmask "255.255.255.0" \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;interfaces.add.owned-object.ipaddr 22.22.22.22&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've also found that I can remove an owned object by uid such as the above interface with...&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;set generic-object uid bbdf2604-ae6b-2942-ab8e-f4b0f7d31fa8 interfaces.remove 35b0b1ab-a323-49ec-b72b-d98eea2ddd89&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What's missing from this picture is how to edit contents of owned objects in an array. PLEASE HELP! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried things like....&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid FWUID interfaces.0&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;.netmask "255.255.255.0"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;code: "generic_err_invalid_parameter"&lt;BR /&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;message: "An object was requested to be added to the collection: 'interfaces', however create is missing"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;...but no dice. &amp;nbsp;There must surely be &amp;nbsp;away to set parameters inside arrays of owned objects but I can't work it out. &amp;nbsp;My requirement by the way is to round trip a gateway from one VSX to another. &amp;nbsp;It's working, we've been using it in anger, but at the moment we have to check anti-spoofing parameters by hand and I'm highly motivated to be able to put them back after the &lt;EM&gt;vsx_provisioning_tool add vd&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 13:54:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94505#M5116</guid>
      <dc:creator>Greg_Harewood</dc:creator>
      <dc:date>2020-08-18T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94511#M5117</link>
      <description>&lt;P&gt;You know how laying out an explanation for other people can sometimes help? &amp;nbsp;I've made progress...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid &amp;lt;&lt;FONT face="times new roman,times"&gt;&lt;EM&gt;GWUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt; interfaces.set.1.uid &lt;FONT face="times new roman,times"&gt;&lt;EM&gt;&amp;lt;IFUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt; interfaces.set.1.owned-object.security.antispoof true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;set generic-object uid &amp;lt;&lt;FONT face="times new roman,times"&gt;&lt;EM&gt;GWUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;interfaces.set.1.uid &lt;FONT face="times new roman,times"&gt;&lt;EM&gt;&amp;lt;IFUID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;interfaces.set.1.owned-object.ipaddr 99.101.102.103&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(The 1 is arbitrary as far as I can tell and just used to associate the two parameters.) &amp;nbsp;These work, and showing the generic object puts them in the right place. &amp;nbsp;However, they don't appear in the GUI (even after publish). &amp;nbsp;What do I need to do to get these propagated and active?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:19:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94511#M5117</guid>
      <dc:creator>Greg_Harewood</dc:creator>
      <dc:date>2020-08-18T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94512#M5118</link>
      <description>&lt;P&gt;This might be one of those things generic-objects can’t do.&lt;BR /&gt;I ran into something similar when I was trying to edit platform portal, which I believe is stored in a similar structure.&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&lt;SPAN style="font-family: inherit; background-color: #ffffff; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:18:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94512#M5118</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-18T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94526#M5119</link>
      <description>&lt;P&gt;I don't know why it didn't seem to be picking up the change - probably an unrelated issue. &amp;nbsp;It's working quite well now actually.&lt;/P&gt;&lt;P&gt;Follow-on question .... with web_api, I can clearly distinguish between null, 0, and "". &amp;nbsp;I don't know how to do so with mgmt_cli. &amp;nbsp;Can you help at all? &amp;nbsp;In particular, things like the security.netaccess.allowed field... how do I set to null, rather than ""? &amp;nbsp;I seem to remember seeing *NULL* used somewhere, but I can no longer find the reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 16:57:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94526#M5119</guid>
      <dc:creator>Greg_Harewood</dc:creator>
      <dc:date>2020-08-18T16:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94821#M5127</link>
      <description>&lt;P&gt;Maybe null without quotes?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 04:51:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/94821#M5127</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-21T04:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: set generic-object ....help me with arrays please!</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/95018#M5130</link>
      <description>&lt;P&gt;I've sort of accepted that if I want to send null, I have to use web_api directly, which is typed. &amp;nbsp;Not great, but if you find out better, let me know!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:37:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-generic-object-help-me-with-arrays-please/m-p/95018#M5130</guid>
      <dc:creator>Greg_Harewood</dc:creator>
      <dc:date>2020-08-24T09:37:39Z</dc:date>
    </item>
  </channel>
</rss>

