<?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 Configure interface topology settings in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165117#M7345</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Using API v1.8.1&lt;/P&gt;
&lt;P&gt;The following command is not being accepted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.name 'eth1' interfaces.topology-settings.ip-address-behind-this-interface 'specific' interfaces.topology-settings.specific-network 'network01'&lt;/P&gt;
&lt;P&gt;Does anyone see an issue with this syntax?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 05:28:04 GMT</pubDate>
    <dc:creator>Simon_Macpherso</dc:creator>
    <dc:date>2022-12-14T05:28:04Z</dc:date>
    <item>
      <title>Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165117#M7345</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Using API v1.8.1&lt;/P&gt;
&lt;P&gt;The following command is not being accepted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.name 'eth1' interfaces.topology-settings.ip-address-behind-this-interface 'specific' interfaces.topology-settings.specific-network 'network01'&lt;/P&gt;
&lt;P&gt;Does anyone see an issue with this syntax?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 05:28:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165117#M7345</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2022-12-14T05:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165165#M7349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Away from my lab currently but&amp;nbsp;just quickly is&amp;nbsp;"demo01" a gateway or cluster object?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 12:43:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165165#M7349</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2022-12-14T12:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165218#M7350</link>
      <description>&lt;P&gt;Looks fine to me, though you may also need to specify the interfaces.topology, depending on whether it's already set to the right value or not. For example, on an External interface, the ip-address-behind-this-interface property doesn't exist, so trying to set it may fail.&lt;/P&gt;
&lt;P&gt;Try adding "interfaces.topology internal" to the call to see if it helps.&lt;/P&gt;
&lt;P&gt;If it doesn't, try one call with only "interfaces.topology internal", then a second call with your topology-settings options.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 20:37:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165218#M7350</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-12-14T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165232#M7351</link>
      <description>&lt;P&gt;Gateway object&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 23:31:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165232#M7351</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2022-12-14T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165344#M7353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried both as follow and both are failing.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.topology internal&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.topology internal&amp;nbsp; interfaces.name 'eth1' interfaces.topology-settings.ip-address-behind-this-interface 'specific' interfaces.topology-settings.specific-network 'dummy_VPN_domain'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;code: "generic_err_invalid_parameter"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;message: "Parameter [interfaces] value is not valid&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Executed command failed. Changes are discarded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 01:40:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165344#M7353</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2022-12-16T01:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165417#M7354</link>
      <description>&lt;P&gt;You would need to specify the interface name in the first call, otherwise it doesn't know which interface it's working on.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.name eth1 interfaces.topology internal&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Dec 2022 14:22:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165417#M7354</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-12-16T14:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165435#M7355</link>
      <description>&lt;P&gt;Hi Simon, interfaces is a JSON list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note according to the documentation:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-simple-gateway~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-simple-gateway~v1.9%20&lt;/A&gt;&lt;BR /&gt;Network interfaces. When a gateway is updated with a new interfaces, the existing interfaces are removed.&lt;/P&gt;
&lt;P&gt;Please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.1.topology 'internal' interfaces.1.name 'eth1' interfaces.1.ipv4-address '192.168.1.1' interfaces.1.ipv4-mask-length '24' interfaces.1.topology-settings.ip-address-behind-this-interface 'specific' interfaces.1.topology-settings.specific-network 'dummy_VPN_domain'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:34:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165435#M7355</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2022-12-16T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165444#M7356</link>
      <description>&lt;P&gt;Whoops. I missed the "List:" in front of the Object in the API documentation. Yes, it will need numbers.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 17:13:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165444#M7356</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-12-16T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165520#M7357</link>
      <description>&lt;P&gt;I also missed it&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 00:06:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165520#M7357</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2022-12-19T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165521#M7358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31"&gt;@Jim_Oqvist&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The note '&lt;SPAN&gt;When a gateway is updated with a new interfaces, the existing interfaces are removed' is not clear. I wanted to update the properties of an existing interface. I didn't realize in order to do this the existing interface needs to be removed and re-added. Which explains why the below syntax&amp;nbsp; is required. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also it seems ALL interfaces are removed even though I'm specifying eth1.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To add both eth0 and eth1 I need to do it in one command, meaning &lt;/SPAN&gt;&lt;SPAN&gt;it's declarative.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The following command works&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;mgmt_cli -r true set simple-gateway name 'demo01' interfaces.1.topology 'internal' interfaces.1.name 'eth1' interfaces.1.ipv4-address '192.168.1.1' interfaces.1.ipv4-mask-length '24' interfaces.1.topology-settings.ip-address-behind-this-interface 'specific' interfaces.1.topology-settings.specific-network 'dummy_VPN_domain'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 01:26:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165521#M7358</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2022-12-19T01:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165593#M7359</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/16342"&gt;@Simon_Macpherso&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Also it seems ALL interfaces are removed even though I'm specifying eth1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's what the "&lt;SPAN&gt;When a gateway is updated with a new interfaces, the existing interfaces are removed" message means. To manipulate&amp;nbsp;&lt;EM&gt;any&lt;/EM&gt; interface via the API, you must provide all the information for&amp;nbsp;&lt;EM&gt;all interfaces&lt;/EM&gt;. Any interfaces which you don't provide in that API call are removed from the object.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 15:34:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165593#M7359</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-12-19T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165624#M7360</link>
      <description>&lt;P&gt;Such a API logic is perfect for automation of adding 1 VLAN on cluster with 500 VLANs ...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 06:33:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165624#M7360</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2022-12-20T06:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Configure interface topology settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165672#M7362</link>
      <description>&lt;P&gt;It's the closest API call I've seen to core REST functionality, where you download a whole record, manipulate it locally, then upload the whole record when you're done. The big difference still remaining is all other APIs I've used which claim to be RESTful use different HTTP verbs rather than different URLs for CRUD operations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create - POST a whole object&lt;/LI&gt;
&lt;LI&gt;Read - GET a URL&lt;/LI&gt;
&lt;LI&gt;Update - PUT with a whole object to fully overwrite the server-side object, or PATCH with only part of the object to update only those fields&lt;/LI&gt;
&lt;LI&gt;Delete - DELETE a URL with the object identifier&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Almost all the other APIs I've used which claim to be RESTful put the object identifier in the path of the URL. To operate on object&amp;nbsp;1cab76a9-261d-4add-b988-5856c4c5a909, you would make calls with those verbs to &amp;lt;server&amp;gt;/objects/1cab76a9-261d-4add-b988-5856c4c5a909. It separates structure of data from operations on the contents of that structure.&lt;/P&gt;
&lt;P&gt;Check Point's management API uses POST for everything. Just about everywhere else, it feels more like remote procedure calls rather than state transfers.&lt;/P&gt;
&lt;P&gt;This is the closest to a RESTful update call, where you tell the server "Make the object assume this state."&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:32:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Configure-interface-topology-settings/m-p/165672#M7362</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-12-20T14:32:22Z</dc:date>
    </item>
  </channel>
</rss>

