<?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: Generic API, List Index in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81289#M4695</link>
    <description>&lt;P&gt;Well.&amp;nbsp; "generic"... ok.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 09:24:01 GMT</pubDate>
    <dc:creator>Christian_Riede</dc:creator>
    <dc:date>2020-04-08T09:24:01Z</dc:date>
    <item>
      <title>Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81041#M4679</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;in dbedit, according to the documentation, you can edit elements of a list in the following way:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dbedit&amp;gt; modify network_objects My_FW interfaces:3:ipaddr IP_ADDRESS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This changes the attribute ipaddr of the 3rd interface. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;How is this achieved which the gerneic api? How does one change attributes of a object in a list. Note that I am not asking how to change an ip address via api. My question is about general API syntax. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My use case is to go into a firewall object, navigate to the realmsForBlades section and change the userloginattr. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Something like &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set generic-object uid="something'" realmsForBlades.1.directory.userloginattr SAMACOUNTNAME&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, but that specific syntax does not work.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Probably, it's something like&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set generic-object uid="something'" realmsForBlades.set .... ,but I cannot find the correct syntax anywhere.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can anyone help?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Christian Riede&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 20:48:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81041#M4679</guid>
      <dc:creator>Christian_Riede</dc:creator>
      <dc:date>2020-04-06T20:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81217#M4688</link>
      <description>Someone else ran into a similar situation trying to edit the platform portal URL, which requires a similar sort of change.&lt;BR /&gt;My understanding (confirmed by R&amp;amp;D) is the generic-object API doesn't provide a way to edit these sorts of attributes.&lt;BR /&gt;See: &lt;A href="https://community.checkpoint.com/t5/CloudGuard-IaaS/Azure-VMSS-Gaia-Certificates/m-p/80948#M1745" target="_blank"&gt;https://community.checkpoint.com/t5/CloudGuard-IaaS/Azure-VMSS-Gaia-Certificates/m-p/80948#M1745&lt;/A&gt;&lt;BR /&gt;You can still use dbedit, however.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2020 00:06:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81217#M4688</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-08T00:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81289#M4695</link>
      <description>&lt;P&gt;Well.&amp;nbsp; "generic"... ok.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 09:24:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81289#M4695</guid>
      <dc:creator>Christian_Riede</dc:creator>
      <dc:date>2020-04-08T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81297#M4696</link>
      <description>&lt;P&gt;on dbedit:&lt;/P&gt;&lt;P&gt;# dbedit&lt;BR /&gt;Enter Server name (ENTER for 'localhost'):&lt;/P&gt;&lt;P&gt;Please enter a command, -h for help or -q to quit:&lt;BR /&gt;dbedit&amp;gt; modify network_objects &amp;lt;name-of-firewall&amp;gt; realmsForBlades:0:directory:userloginattr SAMACCOUNTNAME&lt;BR /&gt;failed to get field realmsForBlades&lt;/P&gt;&lt;P&gt;Reason: in objects_5.0.C, it's realms_for_blades, not realmsForBlades. And it's not SAMACCOUNTNAME, but sAMAccountName&lt;/P&gt;&lt;P&gt;the following works:&lt;/P&gt;&lt;P&gt;modify network_objects &amp;lt;name-of-firewall&amp;gt; realms_for_blades:0:directory:UserLoginAttr sAMAccountName&lt;/P&gt;&lt;P&gt;Now please Checkpoint, can we get rid of dbedit soon?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 10:05:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81297#M4696</guid>
      <dc:creator>Christian_Riede</dc:creator>
      <dc:date>2020-04-08T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81360#M4702</link>
      <description>That's the ultimate plan, yes.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:52:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81360#M4702</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-08T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81409#M4707</link>
      <description>&lt;P&gt;Adding support for indexes like in dbedit to the generic API seems to be a low hanging fruit and would solve the problem in a general way.&lt;/P&gt;&lt;P&gt;Having a specific API for all the objects is probably the long term solution.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 07:53:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81409#M4707</guid>
      <dc:creator>Christian_Riede</dc:creator>
      <dc:date>2020-04-09T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81574#M4716</link>
      <description>The ultimate goal is to eliminate the need for the generic-object API entirely, which means having proper, supported API endpoints for everything.&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Apr 2020 00:54:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/81574#M4716</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-11T00:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/82452#M4754</link>
      <description>&lt;P&gt;So the question is: What happens first - get rid of dbedit by making the generic api functional or get rid of dbedit and generic api at the same time once the specific api is available? &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:09:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/82452#M4754</guid>
      <dc:creator>Christian_Riede</dc:creator>
      <dc:date>2020-04-20T09:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generic API, List Index</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/82530#M4755</link>
      <description>Remember that the generic-object API largely exists to deal with things that need to be automated in a RESTful way but don't have formal API support yet.&lt;BR /&gt;Once there is formal API support for something, there's no need to have support for it via generic-object, which was never meant to be a formally supported API to begin with.&lt;BR /&gt;Which means: the second option is most likely.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:54:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Generic-API-List-Index/m-p/82530#M4755</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-20T18:54:58Z</dc:date>
    </item>
  </channel>
</rss>

