<?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: Mgmt API - feature to update Gateway's MTA settings in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63786#M3971</link>
    <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp; - Can you please tag here any resources for comments ?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 09:58:50 GMT</pubDate>
    <dc:creator>Abhishek_Singh1</dc:creator>
    <dc:date>2019-09-27T09:58:50Z</dc:date>
    <item>
      <title>Mgmt API - feature to update Gateway's MTA settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63753#M3968</link>
      <description>&lt;P&gt;Hi guys ,&lt;/P&gt;&lt;P&gt;I am looking for the script/command needed to be run which takes care of MTA config&amp;nbsp;( adding mail domain , next hop&amp;nbsp; ) on gateway automatically everytime a new Gateway spins up .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/2638i244615F3BA634134/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any know script/ cmd syntax I can use to do this in the below auto-provision of VMSS ??&amp;nbsp; I didn’t find any mgmt_cli command …&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:13:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63753#M3968</guid>
      <dc:creator>Abhishek_Singh1</dc:creator>
      <dc:date>2019-09-26T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt API - feature to update Gateway's MTA settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63786#M3971</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp; - Can you please tag here any resources for comments ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 09:58:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63786#M3971</guid>
      <dc:creator>Abhishek_Singh1</dc:creator>
      <dc:date>2019-09-27T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt API - feature to update Gateway's MTA settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63818#M3973</link>
      <description>&lt;P&gt;I would have expected the "set simple-gateway" command to have options for the MTA config. However it seems like - as the command says - you can only change simple settings by using it, like e.g. enabling/disabling blades.&lt;/P&gt;&lt;P&gt;Seems like there is currently no way to automate this with the mgmt api. It could be worth a try to dig deeper into the generic objects api, as it "allows" to automate much more. However the downsite in this case is that it is very generic and absolutely not user friendly. You can find examples on Check Mates &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Missing-API-possibility-to-set-vpn-community-star-objects/td-p/20956" target="_self"&gt;where VPN configurations&lt;/A&gt; were automated with the just mentioned generic objects api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 13:08:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63818#M3973</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-09-27T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt API - feature to update Gateway's MTA settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63873#M3977</link>
      <description>&lt;P&gt;As I mentioned on the other thread, this will require the use of Generic Objects API.&lt;/P&gt;
&lt;P&gt;The Generic Objects API can be used to manipulate (parts of) objects that do not have otherwise have formal API support.&lt;BR /&gt;Changes made via this API are not guaranteed to work at all and may not work after upgrades.&lt;BR /&gt;Formal APIs should always be used where possible as they are versioned (and thus backward compatible) and are fully supported by TAC/R&amp;amp;D.&lt;/P&gt;
&lt;P&gt;The downside of using the Generic Object API is that you will have to do some work to figure out the correct calls to make.&lt;BR /&gt;Formal support for editing MTA settings on a gateway object would require an RFE.&lt;BR /&gt;Note for&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/186"&gt;@Amiad_Stern&lt;/a&gt;&amp;nbsp;and team &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a starting point, you'll have to dump the specific object in question.&lt;BR /&gt;For example, the command&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;mgmt_cli -r true show generic-objects name dummygw -f json&lt;/STRONG&gt;&lt;/FONT&gt; gives me:&lt;/P&gt;
&lt;P class="p1" style="padding-left: 30px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"objects" : [ {&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"uid" : "dd30a946-0bef-46bf-8944-33a8ca3183a2",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"name" : "dummygw",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"type" : "simple-gateway",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"domain" : {&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"name" : "SMC User",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"domain-type" : "domain"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;}, {&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"uid" : "128adaf9-c547-8249-b864-ebbff501c311",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"name" : "dummygw",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"type" : "CpmiRoboEndPointStatus",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"domain" : {&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"name" : "SMC User",&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"domain-type" : "domain"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;} ],&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class="Apple-converted-space" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"from" : 1,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"to" : 2,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;"total" : 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I suppose I could have gotten the UID for the gateway object a different way.&lt;BR /&gt;But once you have it, then you can dump all the "hidden" settings in the object using &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;show generic-object uid&amp;nbsp;&lt;SPAN class="s1"&gt;dd30a946-0bef-46bf-8944-33a8ca3183a2 -f json&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I won't paste the output here, but I can assure you there is a section of MTA settings and the rules.&lt;BR /&gt;Where my knowledge falls down (and where I hope R&amp;amp;D can help) is how to use the API to actually create/edit these rules.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 23:55:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63873#M3977</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-09-27T23:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt API - feature to update Gateway's MTA settings</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63933#M3984</link>
      <description>Thanks for sharing the insights . I will try to create a fix heading on the same steps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 30 Sep 2019 08:44:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-API-feature-to-update-Gateway-s-MTA-settings/m-p/63933#M3984</guid>
      <dc:creator>Abhishek_Singh1</dc:creator>
      <dc:date>2019-09-30T08:44:17Z</dc:date>
    </item>
  </channel>
</rss>

