<?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 Python API Script to logging in checkpoint  where i am able to logging in with Appstream Manually. in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165259#M59933</link>
    <description>&lt;P&gt;Hi Everyone, The Checkpoint of my organisation is able to login with AppStream manually where as not able to login with normal IP Address. So the same thing how can I connect to Checkpoint with API Code while using AppStream.&amp;nbsp;&lt;BR /&gt;As I went through API references we can connect to checkpoint with below url as&amp;nbsp;&lt;BR /&gt;(url = ("https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/web_api/login"))&lt;BR /&gt;The same how can I go while using AppStream login interface ?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 09:31:52 GMT</pubDate>
    <dc:creator>Farha</dc:creator>
    <dc:date>2022-12-15T09:31:52Z</dc:date>
    <item>
      <title>Python API Script to logging in checkpoint  where i am able to logging in with Appstream Manually.</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165259#M59933</link>
      <description>&lt;P&gt;Hi Everyone, The Checkpoint of my organisation is able to login with AppStream manually where as not able to login with normal IP Address. So the same thing how can I connect to Checkpoint with API Code while using AppStream.&amp;nbsp;&lt;BR /&gt;As I went through API references we can connect to checkpoint with below url as&amp;nbsp;&lt;BR /&gt;(url = ("https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/web_api/login"))&lt;BR /&gt;The same how can I go while using AppStream login interface ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:31:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165259#M59933</guid>
      <dc:creator>Farha</dc:creator>
      <dc:date>2022-12-15T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Script to logging in checkpoint  where i am able to logging in with Appstream Manuall</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165308#M59934</link>
      <description>&lt;P&gt;I assume you’re referring to the streamed version of SmartConsole, correct?&lt;BR /&gt;You should be able to get the necessary IP address by following a process similar to:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Using-SmartConsole-Demo-Mode-Server-for-API-testing/m-p/122863" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Using-SmartConsole-Demo-Mode-Server-for-API-testing/m-p/122863&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:19:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165308#M59934</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-12-15T15:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Script to logging in checkpoint  where i am able to logging in with Appstream Manuall</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165376#M59935</link>
      <description>&lt;P&gt;HI, Even though I am not able to get 200 success for login through RestAPI below is my code&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;import requests&lt;BR /&gt;import base64&lt;BR /&gt;import json&lt;BR /&gt;import time&lt;BR /&gt;from requests.packages.urllib3.exceptions import InsecureRequestWarning&lt;BR /&gt;requests.packages.urllib3.disable_warnings(InsecureRequestWarning)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;def main():&lt;BR /&gt;try:&lt;BR /&gt;url = ("https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/web_api/login")&lt;BR /&gt;headers={&lt;BR /&gt;'content_type': 'application/json'&lt;BR /&gt;}&lt;BR /&gt;response = requests.post(url, headers=headers, verify=False, data={"user":"test","password":"test@123"})&lt;BR /&gt;print(response)&lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(e)&lt;BR /&gt;if __name__ == '__main__':&lt;BR /&gt;main()&lt;BR /&gt;```&lt;BR /&gt;Getting 400 Request error.&lt;BR /&gt;NOTE: API is Enabled and published the change as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 06:48:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165376#M59935</guid>
      <dc:creator>Farha</dc:creator>
      <dc:date>2022-12-16T06:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Script to logging in checkpoint  where i am able to logging in with Appstream Manuall</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165430#M59936</link>
      <description>&lt;P&gt;Turns out getting the info from SmartConsole isn’t correct.&lt;BR /&gt;The information you need is actually in Infinity Portal and will be specific to your tenant.&lt;BR /&gt;See below for an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="378DF47F-9C6B-496B-999E-983E6AB0F1D0.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/18829i1875B4248B38CAE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="378DF47F-9C6B-496B-999E-983E6AB0F1D0.jpeg" alt="378DF47F-9C6B-496B-999E-983E6AB0F1D0.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:13:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Python-API-Script-to-logging-in-checkpoint-where-i-am-able-to/m-p/165430#M59936</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-12-16T15:13:02Z</dc:date>
    </item>
  </channel>
</rss>

