<?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 How to publish changes to Checkpoint API. in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146060#M6721</link>
    <description>&lt;P&gt;Good Day All,&lt;/P&gt;&lt;P&gt;I've recently been tasked to Automate certain changes via the Checkpoint API as a PoC. I'm currently creating a Group (with add-group) and add members with it, and it succeeds.&lt;BR /&gt;&lt;BR /&gt;The problem is I noticed that you need to publish to the API before those changes are made and accepted. I've tried playing around with the Publish API endpoint after making changes with a specific SID, but if i Publish, the response i get seems like the Login Page for the Gaia Login Page:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Invoke-RestMethod "https://$($DomainIP)/v1.8/publish" -Method 'POST' -Headers $headers -Body $body&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9,EmulateIE8"&amp;gt;&amp;lt;meta name="others" content="WEBUI LOGIN PAGE" /&amp;gt;&amp;lt;TITLE&amp;gt;Gaia&amp;lt;/TITLE&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="shortcut icon" href="/login/fav.ico"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/login/ext-all.css" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/login/login.css" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;STYLE TYPE="text/css"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.ext-ie .webui-login-fld{font-size: 11px;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/STYLE&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;script type="text/javascript" src="/login/ext-base.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript" src="/login/ext-all.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript"&amp;gt;var errMsgText = "";var bannerMsgText = "";bannerMsgText += "This system is for authorized use only.&amp;lt;br&amp;gt;";var hostname='REDACTED';var version='R81.10';var formAction="/cgi-bin/home.tcl";&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript" src="/login/login.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;div style='font-size:20px;position:relative;top:100px;'&amp;gt;For full functionality of this site it is necessary to enable JavaScript.&amp;lt;/div&amp;gt;&amp;lt;/noscript&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am completely new to the Checkpoint API, and to clarify, i am not at all a Subject Matter Expert on Checkpoint Firewall Technology so i might be missing something.&lt;BR /&gt;&lt;BR /&gt;I would appreciate it greatly for some guidance on how to publish these changes.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 09:00:16 GMT</pubDate>
    <dc:creator>Andre_DuToit</dc:creator>
    <dc:date>2022-04-12T09:00:16Z</dc:date>
    <item>
      <title>How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146060#M6721</link>
      <description>&lt;P&gt;Good Day All,&lt;/P&gt;&lt;P&gt;I've recently been tasked to Automate certain changes via the Checkpoint API as a PoC. I'm currently creating a Group (with add-group) and add members with it, and it succeeds.&lt;BR /&gt;&lt;BR /&gt;The problem is I noticed that you need to publish to the API before those changes are made and accepted. I've tried playing around with the Publish API endpoint after making changes with a specific SID, but if i Publish, the response i get seems like the Login Page for the Gaia Login Page:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Invoke-RestMethod "https://$($DomainIP)/v1.8/publish" -Method 'POST' -Headers $headers -Body $body&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9,EmulateIE8"&amp;gt;&amp;lt;meta name="others" content="WEBUI LOGIN PAGE" /&amp;gt;&amp;lt;TITLE&amp;gt;Gaia&amp;lt;/TITLE&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="shortcut icon" href="/login/fav.ico"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/login/ext-all.css" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/login/login.css" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;STYLE TYPE="text/css"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.ext-ie .webui-login-fld{font-size: 11px;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/STYLE&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;script type="text/javascript" src="/login/ext-base.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript" src="/login/ext-all.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript"&amp;gt;var errMsgText = "";var bannerMsgText = "";bannerMsgText += "This system is for authorized use only.&amp;lt;br&amp;gt;";var hostname='REDACTED';var version='R81.10';var formAction="/cgi-bin/home.tcl";&amp;lt;/script&amp;gt;&amp;lt;script type="text/javascript" src="/login/login.js"&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;div style='font-size:20px;position:relative;top:100px;'&amp;gt;For full functionality of this site it is necessary to enable JavaScript.&amp;lt;/div&amp;gt;&amp;lt;/noscript&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am completely new to the Checkpoint API, and to clarify, i am not at all a Subject Matter Expert on Checkpoint Firewall Technology so i might be missing something.&lt;BR /&gt;&lt;BR /&gt;I would appreciate it greatly for some guidance on how to publish these changes.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:00:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146060#M6721</guid>
      <dc:creator>Andre_DuToit</dc:creator>
      <dc:date>2022-04-12T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146063#M6722</link>
      <description>&lt;P&gt;What tool do you use to invoke the API calls?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:17:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146063#M6722</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-04-12T10:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146064#M6723</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://$($DomainIP)/v1.8/publish&amp;quot;" target="_blank"&gt;https://$($DomainIP)/v1.8/publish"&lt;/A&gt;&lt;/STRONG&gt;--&amp;gt; Try https://&amp;lt;IP&amp;gt;/web_api/publish.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:23:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146064#M6723</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2022-04-12T10:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146067#M6724</link>
      <description>&lt;P&gt;Hi Val,&lt;/P&gt;&lt;P&gt;I run a Powershell Script with Invoke-RestMethod cmdlet. The response is then displayed via the console itself (vscode)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:36:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146067#M6724</guid>
      <dc:creator>Andre_DuToit</dc:creator>
      <dc:date>2022-04-12T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146068#M6725</link>
      <description>&lt;P&gt;Hi Alex,&lt;BR /&gt;&lt;BR /&gt;I can try this, but the reason im using the previously stated URI is because that was what the Postman Powershell Code suggest is used.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll revert back and let you know if this works.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:37:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146068#M6725</guid>
      <dc:creator>Andre_DuToit</dc:creator>
      <dc:date>2022-04-12T10:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish changes to Checkpoint API.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146069#M6726</link>
      <description>&lt;P&gt;Thanks Alex,&lt;BR /&gt;&lt;BR /&gt;I just tried this and it worked, i can now see the created group in the Smart Console after publishing with that URI. I guess i shouldnt be fully trusting of the Postman Documentation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Have a great day Gentleman!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:41:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-publish-changes-to-Checkpoint-API/m-p/146069#M6726</guid>
      <dc:creator>Andre_DuToit</dc:creator>
      <dc:date>2022-04-12T10:41:22Z</dc:date>
    </item>
  </channel>
</rss>

