<?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: Missing API possibility to set vpn-community-star objects in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20960#M1317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well done, Kim, you are a great learner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding excluded services: in order to add or remove a service, you need to know its uid.&lt;/P&gt;&lt;P&gt;Then, for my VPN community object with uid&amp;nbsp;2dd89767-a346-4799-a981-334f25ad0b1c, to remove a service&amp;nbsp;IKE_NAT_TRAVERSAL with uid&amp;nbsp;07ec4cae-7c50-4b2e-81ed-d75643ab5694, I use -&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c excludeSrv.remove 07ec4cae-7c50-4b2e-81ed-d75643ab5694&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and to add it again, I use -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c excludeSrv.add 07ec4cae-7c50-4b2e-81ed-d75643ab5694&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same goes for DH groups, you need the uid. For example, for GH group with name "Group 2 (1024 bit)", I use -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true show generic-objects name "Group 2 (1024 bit)"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives me uid -&amp;nbsp;97aeb629-9aea-11d5-bd16-0090272ccb30.&lt;/P&gt;&lt;P&gt;Now, again use set generic-object to set the value -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c ikeP2.ikeP2PfsDhGrp "97aeb629-9aea-11d5-bd16-0090272ccb30"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 11:59:11 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-05-03T11:59:11Z</dc:date>
    <item>
      <title>Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20956#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;First of all, thank you for fantastic help from both &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="2075" data-objecttype="3" href="https://community.checkpoint.com/people/dwelccfe6e688-522c-305c-adaa-194bd7a7becc"&gt;Dameon Welch Abernathy&lt;/A&gt; and &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="47511" data-objecttype="3" href="https://community.checkpoint.com/people/rdeck5af054c0-4c71-4395-9c31-2a794ff5bc37"&gt;Robert Decker&lt;/A&gt; for getting me started with using Check Point R80 API.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;It have been a blast to actually being able to make a useful script which can help one in daily work, and especially save not doing the same two times. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In my other check mate entry on how to create a interoperative device&amp;nbsp;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="7668" data-objecttype="1" href="https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api"&gt;https://community.checkpoint.com/thread/7668-how-to-add-interoperative-device-via-api&lt;/A&gt;&amp;nbsp;I have actually been able to solve 4-5 of my manual steps. And I am happy to share with your my result so other might be inspired to other work themselves..&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Today I have found a limitation to setting encryption object on my vpn-community. Some of the fields are available and other aren't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;For example I am not able to set Perfect Forward Secrecy with DH group. It simply doesn't exist while trying to print out JSON using &lt;STRONG&gt;mgmt_cli -u admin show vpn-community-star &amp;lt;name of community&amp;gt;&lt;/STRONG&gt; where I have this setting enabled.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;UNABLE TO RUN QUERY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Expert@gwmgmt:0]# mgmt_cli -u admin show vpn-community-star name "WP-Blaesbjerg"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Password:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code: "generic_internal_error"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;message: "Internal error. For more info search for incident [1cde990d-5ab2-433c-af65-0b3b2750ecec] in log file"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.checkpoint.com/servlet/JiveServlet/showImage/2-18727-65250/pastedImage_12.png"&gt;&lt;IMG class="image-1 jive-image" height="653" src="https://community.checkpoint.com/legacyfs/online/checkpoint/65250_pastedImage_12.png" style=";" width="624" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;It simply doesn't exist in the API&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;Missing possiblity to set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mgmt_cli -u admin set vpn-community-star name testVPN ike-phase-2.diffie-hellman-group "group 5"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I cannot automate via API to set exclude services in the set vpn-community-star&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/servlet/JiveServlet/showImage/2-18727-65251/pastedImage_13.png"&gt;&lt;IMG class="image-2 jive-image" height="458" src="https://community.checkpoint.com/legacyfs/online/checkpoint/65251_pastedImage_13.png" style=";" width="605" /&gt;&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;And u&lt;/SPAN&gt;&lt;SPAN&gt;nable to set advanced settings as rekey keys for IKE and IPSEC and also disable NAT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/servlet/JiveServlet/showImage/2-18727-65252/pastedImage_14.png"&gt;&lt;IMG class="image-3 jive-image" height="400" src="https://community.checkpoint.com/legacyfs/online/checkpoint/65252_pastedImage_14.png" style=";" width="624" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Do you have any workaround for setting these parameter&amp;nbsp;or when can one expect to have these features enabled in the next version of API??&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Kim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 15:14:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20956#M1313</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2018-05-02T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20957#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully &lt;A href="https://community.checkpoint.com/migrated-users/47511"&gt;Robert Decker&lt;/A&gt;‌ or similar can find the necessary "Generic Object" workaround for you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Agree it would all be better if it were natively part of the API.&lt;/P&gt;&lt;P&gt;I did not spot these settings in the current R80.20 Public EA (at least in the docs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 17:55:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20957#M1314</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-05-02T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20958#M1315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is right, not all VPN community settings are currenly available via Management API.&lt;/P&gt;&lt;P&gt;Our R&amp;amp;D is working to close these gaps.&lt;/P&gt;&lt;P&gt;Most of the times the Management APIs provide the most common &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;settings&lt;/SPAN&gt; of objects.&lt;/P&gt;&lt;P&gt;Sometimes, dbedit API may be used to fill in the missing &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;settings&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 19:07:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20958#M1315</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-05-02T19:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20959#M1316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team and &lt;A href="https://community.checkpoint.com/migrated-users/47511"&gt;Robert Decker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I know you are doing a great work of migrating dbedit field into the R80 API.&lt;/P&gt;&lt;P&gt;Lets couple of days have given new insight and possibilities. Looking forward which new features are available in R80.20 when available in GA version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have have been playing around with the command&amp;nbsp;set generic-object and been trying to figure out how to extract information via the dbedit API - is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I had to find the uid of my just created vpn-community:&lt;/P&gt;&lt;P&gt;This I have done by running the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mgmt_cli -u admin show-generic-objects name&amp;nbsp;"VPN-community_name"&amp;nbsp;-f json&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objects:&lt;BR /&gt;- uid: "724ec5b5-9345-4b42-bb8e-16531d2947af"&lt;BR /&gt; name: "WP-Gettrup"&lt;BR /&gt; type: "vpn-community-star"&lt;BR /&gt; domain:&lt;BR /&gt; uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt; name: "SMC User"&lt;BR /&gt; domain-type: "domain"&lt;BR /&gt;from: 1&lt;BR /&gt;to: 1&lt;BR /&gt;total: 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need here, is the uid from the json output, and this uid I will parse into a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# Find uid from vpn-commmunity-star unit name to variable vpnuid&lt;/P&gt;&lt;P&gt;vpnuid=$(mgmt_cli -s id.txt show-generic-objects name "VPN-community_name" -f json | ${CPDIR}/jq/jq -r '.objects[] | select (.type | contains("vpn-community-star")) | .uid')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have saved the vpn community uid, I want to use this uid to change vpn community settings.&lt;/P&gt;&lt;P&gt;I just need to find out what are the field names are and how to use them in the vpn community dialog to set these settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running this command I am able to show in json format all available fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mgmt_cli -u admin show generic-object uid 724ec5b5-9345-4b42-bb8e-16531d2947af&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;OUTPUT:&lt;/P&gt;&lt;P&gt;objectValidationState: null&lt;BR /&gt;color: "BLACK"&lt;BR /&gt;automaticRimSatellites: false&lt;BR /&gt;customerScriptSatellites: false&lt;BR /&gt;supportWireMode: false&lt;BR /&gt;customerScriptCenter: false&lt;BR /&gt;routeRetPackets: false&lt;BR /&gt;enableMep: false&lt;BR /&gt;participantsDomains: []&lt;BR /&gt;type: "intranet_community"&lt;BR /&gt;id: 137&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from output I have then pin pointed which fields I need to set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# IKE (Phase 1) and IPsec (Phase 2) renegotiate IKE/IPsec security associations every...&lt;/P&gt;&lt;P&gt;ikeP1.ikeP1RekeyTime "60"&lt;/P&gt;&lt;P&gt;ikeP2.ikeP2RekeyTime "28800"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#enable Perfect Forward Secrecy true/false&lt;BR /&gt;ikeP2.ikeP2UsePfs true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Disable NAT inside the VPN community&lt;BR /&gt;disableNat: false/true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can use these fields and insert values. and they are set. It doesn't seems like I have to manipulate with dbedit database to effectuate.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;mgmt_cli -u admin set generic-object uid 724ec5b5-9345-4b42-bb8e-16531d2947af ikeP1.ikeP1RekeyTime "60"&amp;nbsp; ikeP2.ikeP2RekeyTime "28800" ikeP2.ikeP2UsePfs true disableNat true&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now put everything together in a script which looks like this.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#/bin/bash&lt;/P&gt;&lt;P&gt;# ask for credentials from user&lt;BR /&gt;echo "Please enter your username and password"&lt;BR /&gt;read -p "Enter username and press [ENTER]: " USER&lt;BR /&gt;read -s -p "Enter password and press [ENTER]: " PASS&lt;BR /&gt;echo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli login user ${USER} password ${PASS} &amp;gt; id.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# in case of an error: print to screen the error message and abort&lt;BR /&gt;if [ $? -ne 0 ]; then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo "Login command failed."&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cat id.txt&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Find uid from vpn-commmunity-star unit name to variable vpnuid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vpnuid=$(mgmt_cli -s id.txt show-generic-objects name "VPN-community_name" -f json | ${CPDIR}/jq/jq -r '.objects[] | select (.type | contains("vpn-community-star")) | .uid')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli -s id.txt set generic-object uid 724ec5b5-9345-4b42-bb8e-16531d2947af ikeP1.ikeP1RekeyTime "60"&amp;nbsp; ikeP2.ikeP2RekeyTime "28800" ikeP2.ikeP2UsePfs true disableNat true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Publish the creation of a interoperative device as specified.&lt;BR /&gt;mgmt_cli publish -s id.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Finalize publish all the changes. We must logout.&amp;nbsp;The correct flow when working with management API&lt;/P&gt;&lt;P&gt;# Login -&amp;gt; work -&amp;gt; publish/discard -&amp;gt; logout&lt;BR /&gt;mgmt_cli logout -s id.txt&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't been able to set Phase 2 DH group - whether it is group 2 or group 5. Though I had to use the uid, but none of these works. I don't know how to set excluded services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#use DH group 5&lt;BR /&gt;ikeP2.ikeP2PfsDhGrp "97aeb629-9aea-11d5-bd16-0090272ccb30"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Exclude services&lt;/P&gt;&lt;P&gt;excludeSrv:&lt;BR /&gt;- "97aeb475-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;- "aa49fc3b-2b4a-4da9-834f-d8f353d7042d"&lt;BR /&gt;- "4bbb59d5-0c05-484d-8306-4ae459b50105"&lt;BR /&gt;- "18ec9eaa-1657-4240-ab97-5f234623336b"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/47511"&gt;Robert Decker&lt;/A&gt;‌ do you know how I can set Phase 2 DH groups correct and how I also can set excluded services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this inspire others to work with the APi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 10:39:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20959#M1316</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2018-05-03T10:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20960#M1317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well done, Kim, you are a great learner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding excluded services: in order to add or remove a service, you need to know its uid.&lt;/P&gt;&lt;P&gt;Then, for my VPN community object with uid&amp;nbsp;2dd89767-a346-4799-a981-334f25ad0b1c, to remove a service&amp;nbsp;IKE_NAT_TRAVERSAL with uid&amp;nbsp;07ec4cae-7c50-4b2e-81ed-d75643ab5694, I use -&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c excludeSrv.remove 07ec4cae-7c50-4b2e-81ed-d75643ab5694&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and to add it again, I use -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c excludeSrv.add 07ec4cae-7c50-4b2e-81ed-d75643ab5694&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same goes for DH groups, you need the uid. For example, for GH group with name "Group 2 (1024 bit)", I use -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true show generic-objects name "Group 2 (1024 bit)"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives me uid -&amp;nbsp;97aeb629-9aea-11d5-bd16-0090272ccb30.&lt;/P&gt;&lt;P&gt;Now, again use set generic-object to set the value -&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mgmt_cli -r true set generic-object uid 2dd89767-a346-4799-a981-334f25ad0b1c ikeP2.ikeP2PfsDhGrp "97aeb629-9aea-11d5-bd16-0090272ccb30"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 11:59:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/20960#M1317</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-05-03T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/114935#M5732</link>
      <description>&lt;P&gt;It has been 3 years and still there is no way to set these settings via the api?&lt;BR /&gt;Very disappointing in a world where everything is being automated via Ansible/API's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 11:19:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/114935#M5732</guid>
      <dc:creator>Cegeka_Networki</dc:creator>
      <dc:date>2021-03-30T11:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing API possibility to set vpn-community-star objects</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/114937#M5733</link>
      <description>&lt;P&gt;Feel free to open RFE for this feature&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 11:50:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/m-p/114937#M5733</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-03-30T11:50:36Z</dc:date>
    </item>
  </channel>
</rss>

